pub fn derive_child_public_key_with_path<E>(
parent_public_key: &ExtendedPublicKey<E>,
path: impl IntoIterator<Item = NonHardenedIndex>,
) -> ExtendedPublicKey<E>Expand description
Derives a child public key with specified derivation path
Derivation path is an iterator that yields child indexes.
If derivation path is empty, parent_public_key is returned
Alias to <Stark as HdWallet<E>>::derive_child_public_key_with_path
ยงExample
Derive a child key with path m/1/10
use hd_wallet::HdWallet;
let child_key = hd_wallet::stark::derive_child_public_key_with_path(
&master_public_key,
[1.try_into()?, 10.try_into()?],
);