Closed roccomuso closed 4 years ago
ECPair has compressed attribute, but bip32 is always compressed so it does not have a compressed element.
I agree it is confusing since a lot of tests in the bitcoinjs suite tend to use ECPair and bip32 interchangeably.
I have pushed a new patch for BIP32 v2.0.6
If you reinstall bitcoinjs-lib from scratch it should pull in the new bip32 patch with the fix.
Why this produce by default a wrong signature
I noticed the first byte of the signature is wrong ("H", but it should be "I"), and it's all about
keyPair.compressed
, why is that false? that should betrue
in order to get a valid signature