ParseHDKeypath

Parse an HD keypaths like "m/7/0'/2000".

Synopsis

Declared in <util/bip32.h>

[[nodiscard]]
bool
ParseHDKeypath(
    std::string const& keypath_str,
    std::vector<uint32_t>& keypath);

Return Value

true if the key path was parsed successfully.

NOTE

The return value should not be discarded.

Parameters

NameDescription
keypath_strThe textual key path to parse.
keypathOutput vector filled with the parsed derivation indices.