Derive a BIP32 child extended public key.

Synopsis

Declared in <pubkey.h>

[[nodiscard]]
bool
Derive(
    CExtPubKey& out,
    unsigned int nChild,
    uint256* bip32_tweak_out = nullptr) const;

Return Value

true if derivation succeeded.

Note

The return value should not be discarded.

Parameters

Name

Description

out

Output child extended public key.

nChild

Index of the child key to derive.

bip32_tweak_out

Optional output receiving the BIP32 tweak applied.

Created with MrDocs