FormatHDKeypath

Format an HD keypath as a string, prefixed with the master key marker "m".

Synopsis

Declared in <util/bip32.h>

std::string
FormatHDKeypath(
    std::vector<uint32_t> const& path,
    bool apostrophe = false);

Return Value

The key path formatted as a string.

Parameters

NameDescription
pathThe derivation indices to format.
apostropheUse an apostrophe rather than 'h' to mark hardened steps.