HD wallets derivation
This crate supports the following HD derivations:
To perform HD derivation, use HdWallet trait.
Example: SLIP10 derivation
Derive a master key from the seed, and then derive a child key m/1H/10:
use ;
let seed = b"16-64 bytes of high entropy".as_slice;
let master_key = ?;
let master_key_pair = from;
let child_key_pair = derive_child_key_pair_with_path;
Example: via HdWallet trait
HdWallet trait generalizes HD derivation algorithm, you can use it with generics:
use ;
// Use it with any HD derivation:
let seed = b"16-64 bytes of high entropy".as_slice;
let master_key = derive_master_key?;
let master_key_pair = from;
let child_key = ;
Features
std: enables std library support (mainly, it just implementsErrortrait for the error types)curve-secp256k1,curve-secp256r1,curve-ed25519add curve implementation into the crate curves module
Join us in Discord!
Feel free to reach out to us in Discord!