Expand description
Library with extended support of hierarchival deterministic wallet functions.
Includes advanced derivation paths functionality and operations.
Re-exports§
pub use account::DerivationAccount;
pub use standards::Bip43;
pub use standards::DerivationStandard;
pub use standards::DescriptorType;
Modules§
- account
- Module implements LNPBP-32 tracking account type
- standards
- Derivation schemata based on BIP-43-related standards.
Structs§
- Derivation
Subpath - Derivation path that consisting only of single type of segments.
- Derive
Pattern Error - the provided derive pattern does not match descriptor derivation wildcard
- Hardened
Index - Index for hardened children derivation; ensures that the index always >= 2^31.
- Hardened
Index Expected - normal derivation index {_0} met when a hardened index was required.
- Index
Range - Range of derivation indexes (in form
n..m
) as it can be present in the derivation path terminal segment according to BIP-88 and LNPBP-32. The range is always inclusive. - Index
Range List - Multiple index ranges (in form
a..b, c..d
) as it can be present in the derivation path segment according to BOP-88 and LNPBP-32. The range is always inclusive. - Unhardened
Index - Index for unhardened children derivation; ensures that the inner value is always < 2^31
- Unhardened
Index Expected - hardened derivation index {_0} met when a normal (unhardened) index was required.
- Xpub
Descriptor - Descriptor for extended public key which may also hold the information information about the key origin.
- Xpub
Origin - Structure describing origin of some extended key
- Xpubkey
Core - Deterministic part of the extended public key descriptor
Enums§
- Account
Step - Derivation segment for the account part of the derivation path as defined by LNPBP-32 standard
- Derive
Error - Errors during descriptor derivation
- NonStandard
Derivation - Errors happening when used derivation does not match one requried by a standard.
- Terminal
Step - Derivation segment for the terminal part of the derivation path as defined by LNPBP-32 standard
- Xpub
Parse Error - Error parsing
XpubDescriptor
string representation - XpubRef
- A reference to the used extended public key at some level of a derivation path.
- Xpub
Requirement Error - Errors constructing
XpubOrigin
.
Constants§
- HARDENED_
INDEX_ BOUNDARY - Constant determining BIP32 boundary for u32 values after which index is treated as hardened
Traits§
- Derivation
Path Master - Extension trait allowing to add more methods to
DerivationPath
type - Hardened
Normal Split - Extension trait allowing splitting derivation paths into hardened and unhardened components
- Segment
Indexes - Trait defining common API for different types of indexes which may be present in a certain derivation path segment: hardened, unhardened, mixed.
- Unsatisfiable
Key - Extension trait for types containing EC keys, which can be made provably unspendable