Closed fametrano closed 1 year ago
I don't think the speed improvement of these changes will be noticeable
I don't think the speed improvement of these changes will be noticeable
I agree. Nonetheless, why not saving redundant variable updates plus an EC multiplication in every non-hardened private key derivation?
Avoided updating parent_fingerprint and index in multi-level derivation (as already done for depth). This save an EC multiplication in every non-hardened private key derivation. Also added test for explicit public key derivation, strangely missing from BIP32 test vectors where one could always use private derivation + xpub_from_xpriv instead of public key derivation.