Make taproot LeafInfo public

LeafInfo structure is a useful form of representing leaf script information (script, leaf version and merkle proof).
This commit is contained in:
Dr Maxim Orlovsky 2022-03-31 14:59:08 +02:00
parent 8ca18f75dd
commit c83893d497
No known key found for this signature in database
GPG Key ID: FFC0250947E5C6F7
1 changed files with 1 additions and 1 deletions

View File

@ -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.