pub fn derive_child_key_pair_with_path<E>(
parent_key: &ExtendedKeyPair<E>,
path: impl IntoIterator<Item = impl Into<ChildIndex>>,
) -> ExtendedKeyPair<E>Expand description
Derives a child key pair with specified derivation path from parent key pair
Derivation path is an iterator that yields child indexes.
If derivation path is empty, parent_key is returned
Alias to <Stark as HdWallet<E>>::derive_child_key_pair_with_path
ยงExample
Derive a child key with path m/1/10/1H
use hd_wallet::HdWallet;
let child_key = hd_wallet::stark::derive_child_key_pair_with_path(
&master_key_pair,
[1, 10, 1 + hd_wallet::H],
);