Parse a single key path element like "0", "0'", or "0h". Returns the derivation index and hardened status, or an error message.
Declared in <util/bip32.h>
util::Expected<KeyPathElement, std::string>
ParseKeyPathElement(std::span<char const> elem);
The parsed element, or an error message on failure.
| Name | Description |
|---|---|
| elem | The textual key path element to parse. |