Update bip_174.rs

This commit is contained in:
fuder.eth 2025-04-05 20:34:17 +02:00 committed by GitHub
parent 263db9057b
commit c55da5c342
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -263,15 +263,15 @@ fn update_psbt(mut psbt: Psbt, fingerprint: Fingerprint) -> Psbt {
psbt psbt
} }
/// `pk_path` holds tuples of `(public_key, derivation_path)`. `indecies` is used to access the /// `pk_path` holds tuples of `(public_key, derivation_path)`. `indices` is used to access the
/// `pk_path` vector. `fingerprint` is from the parent extended public key. /// `pk_path` vector. `fingerprint` is from the parent extended public key.
fn bip32_derivation( fn bip32_derivation(
fingerprint: Fingerprint, fingerprint: Fingerprint,
pk_path: &[(&str, &str)], pk_path: &[(&str, &str)],
indecies: Vec<usize>, indices: Vec<usize>,
) -> BTreeMap<secp256k1::PublicKey, KeySource> { ) -> BTreeMap<secp256k1::PublicKey, KeySource> {
let mut tree = BTreeMap::new(); let mut tree = BTreeMap::new();
for i in indecies { for i in indices {
let pk = pk_path[i].0; let pk = pk_path[i].0;
let path = pk_path[i].1; let path = pk_path[i].1;