Skip to main content

Module hd

Module hd 

Source
Expand description

BIP32 non-hardened public derivation for the 2-of-2 key (the same scheme as the reference implementation): the client adds δ to its share, so X' = X + δ·G and the server share stays unchanged. δ is the sum of the BIP32 tweaks along the path and is computed from the public key and the chain code only, so both parties get the same value.

Structs§

HdPath
Chain code and a path of non-hardened child indices.

Constants§

MAX_PATH_DEPTH
Deepest path accepted (BIP44 needs 5).

Functions§

derive_child_public_key
Child public key X + δ·G (33-byte compressed) for the compressed master key x_pub.