Fix type inference for the tr() descriptor, add basic tests

This commit is contained in:
Alekos Filini committed 2022-05-31 18:16:24 +02:00
1 parent fe1877fb18
commit 308708952b
2 files changed
+49 -9

No files matched your search

+1 -2
View File
@@ -302,8 +302,7 @@ impl InputSigner for SignerWrapper<DescriptorXKey<ExtendedPrivKey>> {
let tap_key_origins = psbt.inputs[input_index]
.tap_key_origins
.iter()
.map(|(pk, (_, keysource))| (SinglePubKey::XOnly(*pk), keysource))
.collect::<Vec<_>>();
.map(|(pk, (_, keysource))| (SinglePubKey::XOnly(*pk), keysource));
let (public_key, full_path) = match psbt.inputs[input_index]
.bip32_derivation
.iter()