[][src]Module grin_keychain::extkey_bip32

Implementation of BIP32 hierarchical deterministic wallets, as defined at https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki Modified from above to integrate into grin and allow for different hashing algorithms if desired

Structs

BIP32GrinHasher

Implementation of the above that uses the standard BIP32 Hash algorithms

ChainCode

A chain code

ExtendedPrivKey

Extended private key

ExtendedPubKey

Extended public key

Fingerprint

A fingerprint

Enums

ChildNumber

A child number for a derived key

Error

A BIP32 error

Traits

BIP32Hasher

Allow different implementations of hash functions used in BIP32 Derivations Grin uses blake2 everywhere but the spec calls for SHA512/Ripemd160, so allow this in future and allow us to unit test against published BIP32 test vectors The function names refer to the place of the hash in the reference BIP32 spec, not what the actual implementation is