File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,13 @@ impl<Pk: MiniscriptKey> Liftable<Pk> for TapTree<Pk> {
546
546
impl < Pk : MiniscriptKey > Liftable < Pk > for Tr < Pk > {
547
547
fn lift ( & self ) -> Result < Policy < Pk > , Error > {
548
548
match & self . tree {
549
- Some ( root) => root. lift ( ) ,
549
+ Some ( root) => Ok ( Policy :: Threshold (
550
+ 1 ,
551
+ vec ! [
552
+ Policy :: KeyHash ( self . internal_key. to_pubkeyhash( ) ) ,
553
+ root. lift( ) ?,
554
+ ] ,
555
+ ) ) ,
550
556
None => Ok ( Policy :: KeyHash ( self . internal_key . to_pubkeyhash ( ) ) ) ,
551
557
}
552
558
}
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ impl<Pk: MiniscriptKey> Liftable<Pk> for Descriptor<Pk> {
181
181
Descriptor :: Wpkh ( ref wpkh) => wpkh. lift ( ) ,
182
182
Descriptor :: Wsh ( ref wsh) => wsh. lift ( ) ,
183
183
Descriptor :: Sh ( ref sh) => sh. lift ( ) ,
184
- Descriptor :: Tr ( ref _tr ) => unimplemented ! ( ) ,
184
+ Descriptor :: Tr ( ref tr ) => tr . lift ( ) ,
185
185
}
186
186
}
187
187
}
You can’t perform that action at this time.
0 commit comments