Closed ChrisCho-H closed 1 year ago
I would rather remove wif.
In a BIP32 world, wif is unnecessary.
Even if you need it, you can always do wif.encode(node.privateKey)
bip32 has a function toWIF()
which has a dependency on wif.
do u think that module is also better to be removed?
Yes, that is what I meant when I said we should remove it.
It would be a breaking change, so I've been putting it off, I should have removed it when we updated for taproot.
I made PR https://github.com/bitcoinjs/bip32/pull/82 to remove wif
update wif following https://github.com/bitcoinjs/wif/pull/30 this will prevent error caused by crypto libs in browser or mobile