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
curve-secp256k1,curve-secp256r1,curve-ed25519,curve-starkadd curve implementation into the crate curves moduleall-curvesadds all curves listed aboveslip10,edwards,starkaddslip10,edwards, andstarkHD derivations respectivelyserdeaddsserde::{Serialize, Deserialize}traits implementation to the types in the library
Join us in Discord!
Feel free to reach out to us in Discord!