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

This commit is contained in:
Alekos Filini
2022-04-29 16:08:03 +02:00
parent fe1877fb18
commit 308708952b
2 changed files with 49 additions and 9 deletions

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()