passing in network to toWIF