![]() |
Bitcoin Core 32.1.0
P2P Digital Currency
|
Go to the source code of this file.
Classes | |
| struct | KeyPathElement |
Functions | |
| util::Expected< KeyPathElement, std::string > | ParseKeyPathElement (std::span< const char > elem) |
| Parse a single key path element like "0", "0'", or "0h". | |
| bool | ParseHDKeypath (const std::string &keypath_str, std::vector< uint32_t > &keypath) |
| Parse an HD keypaths like "m/7/0'/2000". | |
| std::string | WriteHDKeypath (const std::vector< uint32_t > &keypath, bool apostrophe=false) |
| Write HD keypaths as strings. | |
| std::string | FormatHDKeypath (const std::vector< uint32_t > &path, bool apostrophe=false) |
| bool | HasHardenedDerivation (std::span< const uint32_t > keypath) |
| Whether a parsed HD keypath contains at least one hardened derivation step. | |
Variables | |
| static constexpr uint32_t | BIP32_UNHARDENED_FLAG = 0x0 |
| BIP32 unhardened derivation index (no high bit set). | |
| static constexpr uint32_t | BIP32_HARDENED_FLAG = 0x80000000 |
| BIP32 hardened derivation flag (2^31). | |
| std::string FormatHDKeypath | ( | const std::vector< uint32_t > & | path, |
| bool | apostrophe = false ) |
| bool HasHardenedDerivation | ( | std::span< const uint32_t > | keypath | ) |
|
nodiscard |
| util::Expected< KeyPathElement, std::string > ParseKeyPathElement | ( | std::span< const char > | elem | ) |
| std::string WriteHDKeypath | ( | const std::vector< uint32_t > & | keypath, |
| bool | apostrophe = false ) |
|
staticconstexpr |