From c83893d4975753c765d5fe7003097a3cf55b65ca Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Thu, 31 Mar 2022 14:59:08 +0200 Subject: [PATCH] Make taproot LeafInfo public LeafInfo structure is a useful form of representing leaf script information (script, leaf version and merkle proof). --- src/util/taproot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/taproot.rs b/src/util/taproot.rs index 325feaa6..8715f294 100644 --- a/src/util/taproot.rs +++ b/src/util/taproot.rs @@ -608,7 +608,7 @@ impl NodeInfo { /// Store information about taproot leaf node. #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] -pub(crate) struct LeafInfo { +pub struct LeafInfo { /// The underlying script. pub(crate) script: Script, /// The leaf version.