Derive BIP32 child pubkey.

Synopsis

Declared in <pubkey.h>

[[nodiscard]]
bool
Derive(
    CPubKey& pubkeyChild,
    ChainCode& ccChild,
    unsigned int nChild,
    ChainCode const& cc,
    uint256* bip32_tweak_out = nullptr) const;

Return Value

true if derivation succeeded.

Note

The return value should not be discarded.

Parameters

Name

Description

pubkeyChild

Output child public key.

ccChild

Output child chain code.

nChild

Index of the child key to derive.

cc

The parent chain code.

bip32_tweak_out

Optional output receiving the BIP32 tweak applied.

Created with MrDocs