We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51e0b08 commit abe64ddCopy full SHA for abe64dd
src/descriptor/mod.rs
@@ -300,7 +300,7 @@ impl<Pk: MiniscriptKey> Descriptor<Pk> {
300
}
301
302
/// Create new tr descriptor
303
- /// Errors when miniscript exceeds resource limits under Segwitv0 context
+ /// Errors when miniscript exceeds resource limits under Tap context
304
pub fn new_tr(key: Pk, script: Option<tr::TapTree<Pk>>) -> Result<Self, Error> {
305
Ok(Descriptor::Tr(Tr::new(key, script)?))
306
@@ -634,6 +634,7 @@ where
634
("wpkh", 1) => Descriptor::Wpkh(Wpkh::from_tree(top)?),
635
("sh", 1) => Descriptor::Sh(Sh::from_tree(top)?),
636
("wsh", 1) => Descriptor::Wsh(Wsh::from_tree(top)?),
637
+ ("tr", _) => Descriptor::Tr(Tr::from_tree(top)?),
638
_ => Descriptor::Bare(Bare::from_tree(top)?),
639
})
640
0 commit comments