Decodes a WIF-encoded private key string.
When network is a single Network, the decoded version byte must match exactly or an error is thrown. When network is an array, the first network whose wif byte matches is used.
network
The WIF string to decode.
One or more candidate networks.
The decoded private key, compression flag, and matched network.
If no network matches the decoded version byte.
Decodes a WIF-encoded private key string.
When
networkis a single Network, the decoded version byte must match exactly or an error is thrown. Whennetworkis an array, the first network whose wif byte matches is used.