File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -632,6 +632,25 @@ impl LeafInfo {
632
632
pub fn leaf_hash ( & self ) -> TapLeafHash {
633
633
TapLeafHash :: from_script ( & self . script , self . ver )
634
634
}
635
+
636
+ /// Returns reference to the leaf script.
637
+ #[ inline]
638
+ pub fn script ( & self ) -> & Script {
639
+ & self . script
640
+ }
641
+
642
+ /// Returns leaf version of the script.
643
+ #[ inline]
644
+ pub fn leaf_version ( & self ) -> LeafVersion {
645
+ self . ver
646
+ }
647
+
648
+ /// Returns reference to the merkle proof (hashing partners) to get this
649
+ /// node in form of [`TaprootMerkleBranch`].
650
+ #[ inline]
651
+ pub fn merkle_branch ( & self ) -> & TaprootMerkleBranch {
652
+ & self . merkle_branch
653
+ }
635
654
}
636
655
637
656
/// The merkle proof for inclusion of a tree in a taptree hash.
You can’t perform that action at this time.
0 commit comments