We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
tap_tree
1 parent 660f543 commit 3d1f72eCopy full SHA for 3d1f72e
src/wallet/mod.rs
@@ -4289,6 +4289,8 @@ pub(crate) mod test {
4289
4290
#[test]
4291
fn test_taproot_psbt_input_tap_tree() {
4292
+ use crate::bitcoin::psbt::serialize::Deserialize;
4293
+ use crate::bitcoin::psbt::TapTree;
4294
use bitcoin::hashes::hex::FromHex;
4295
use bitcoin::util::taproot;
4296
@@ -4328,6 +4330,11 @@ pub(crate) mod test {
4328
4330
psbt.inputs[0].tap_internal_key,
4329
4331
psbt.outputs[0].tap_internal_key
4332
);
4333
+
4334
+ assert_eq!(
4335
+ psbt.outputs[0].tap_tree,
4336
+ Some(TapTree::deserialize(&Vec::<u8>::from_hex("01c022208aee2b8120a5f157f1223f72b5e62b825831a27a9fdf427db7cc697494d4a642ac01c0222051494dc22e24a32fe9dcfbd7e85faf345fa1df296fb49d156e859ef345201295ac",).unwrap()).unwrap())
4337
+ );
4338
}
4339
4340
0 commit comments