[−][src]Crate hdwallet
HD wallet(BIP-32) related key derivation utilities.
This crate is build upon secp256k1 crate, only provide BIP-32 related features, for signatures see the original secp256k1 documentation.
ChainPath
andKeyChain
used to derivation child keys from string represented path.HDKey
return value ofkey_chain.fetch_key
,HDKey
represent a derivated key which include aExtendedPrivKey
and other derivation info.ExtendedPrivKey
andExtendedPubKey
as BIP-32 described it is basic struct inhdwallet
.KeyIndex
is a simple enum indicate the index and type of child key(Normal key or Hardened key).Error
errors.
Re-exports
pub use secp256k1; |
Structs
ChainPath | ChainPath is used to describe BIP-32 KeyChain path. |
ChildPrivKey | ChildPrivKey, derive from ExtendedPrivKey |
ChildPubKey | ChildPubKey derive from ExtendedPubKey, or from ChildPrivKey |
DefaultKeyChain | |
ExtendedPrivKey | ExtendedPrivKey is used for child key derivation. See secp256k1 crate documentation for SecretKey signatures usage. |
ExtendedPubKey | ExtendedPubKey is used for public child key derivation. See secp256k1 crate documentation for PublicKey signatures usage. |
HDKey |
Enums
ChainPathError | |
ChildKey | ChildKey |
Error | |
ExtendedKey | ChildKey |
KeyIndex | KeyIndex indicates the key type and index of a child key. |
KeySeed | Indicate size of random seed used to generate private key, 256 is recommended. |
SubPath |
Traits
KeyChain | KeyChain is used for derivation HDKey from master_key and chain_path. |
Serialize |