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:
parent
8ca18f75dd
commit
c83893d497
|
@ -608,7 +608,7 @@ impl NodeInfo {
|
||||||
/// Store information about taproot leaf node.
|
/// Store information about taproot leaf node.
|
||||||
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||||
pub(crate) struct LeafInfo {
|
pub struct LeafInfo {
|
||||||
/// The underlying script.
|
/// The underlying script.
|
||||||
pub(crate) script: Script,
|
pub(crate) script: Script,
|
||||||
/// The leaf version.
|
/// The leaf version.
|
||||||
|
|
Loading…
Reference in New Issue