BIP32Hash

Computes the BIP32 child key derivation hash.

Synopsis

Declared in <hash.h>

void
BIP32Hash(
    ChainCode const& chainCode,
    unsigned int nChild,
    unsigned char header,
    unsigned char const data[],
    unsigned char output[]);

Parameters

NameDescription
chainCodeThe parent chain code.
nChildThe index of the child key being derived.
headerThe header byte prepended to the hashed data.
dataThe 32-byte key material to hash.
outputThe 64-byte buffer to receive the resulting hash.