#include <cstdint>
#include <span>
#include <string>
#include <util/expected.h>
#include <vector>
Go to the source code of this file.
◆ FormatHDKeypath()
| std::string FormatHDKeypath |
( |
const std::vector< uint32_t > & |
path, |
|
|
bool |
apostrophe = false |
|
) |
| |
◆ HasHardenedDerivation()
| bool HasHardenedDerivation |
( |
std::span< const uint32_t > |
keypath | ) |
|
Whether a parsed HD keypath contains at least one hardened derivation step.
Definition at line 77 of file bip32.cpp.
◆ ParseHDKeypath()
| bool ParseHDKeypath |
( |
const std::string & |
keypath_str, |
|
|
std::vector< uint32_t > & |
keypath |
|
) |
| |
Parse an HD keypaths like "m/7/0'/2000".
Definition at line 41 of file bip32.cpp.
◆ ParseKeyPathElement()
Parse a single key path element like "0", "0'", or "0h".
Returns the derivation index and hardened status, or an error message.
Definition at line 17 of file bip32.cpp.
◆ WriteHDKeypath()
| std::string WriteHDKeypath |
( |
const std::vector< uint32_t > & |
keypath, |
|
|
bool |
apostrophe = false |
|
) |
| |
Write HD keypaths as strings.
Definition at line 72 of file bip32.cpp.
◆ BIP32_HARDENED_FLAG
| constexpr uint32_t BIP32_HARDENED_FLAG = 0x80000000 |
|
staticconstexpr |
BIP32 hardened derivation flag (2^31)
Definition at line 17 of file bip32.h.
◆ BIP32_UNHARDENED_FLAG
| constexpr uint32_t BIP32_UNHARDENED_FLAG = 0x0 |
|
staticconstexpr |
BIP32 unhardened derivation index (no high bit set)
Definition at line 15 of file bip32.h.