ParseKeyPathElement

Parse a single key path element like "0", "0'", or "0h". Returns the derivation index and hardened status, or an error message.

Synopsis

Declared in <util/bip32.h>

util::Expected<KeyPathElement, std::string>
ParseKeyPathElement(std::span<char const> elem);

Return Value

The parsed element, or an error message on failure.

Parameters

NameDescription
elemThe textual key path element to parse.