cryptocoinjs / hdkey

JavaScript component for Bitcoin hierarchical deterministic keys (BIP32)
MIT License
201 stars 74 forks source link

What is the case for publicKeyTweakAdd ? #42

Closed joelamouche closed 3 years ago

joelamouche commented 3 years ago

https://github.com/cryptocoinjs/hdkey/blob/3f3c0b5cedb98f971835b5116ebea05b3c09422a/lib/hdkey.js#L139

In what case would the private key be null here? Is there a case where one wants to derive a bunch of public addresses without having the private key? Thanks in advance

junderw commented 3 years ago

yes.

This is used for multiple public key derivation without knowledge of any private keys.

joelamouche commented 3 years ago

ok good to know thanks