Remove serde for ScriptLeaf

This was incorrect and not needed. Users should not be able to create
only tree leaves directly without going through the tree construction in
rust-bitcoin
This commit is contained in:
sanket1729 2023-02-24 01:26:50 -08:00
parent 9affda3012
commit a397ab0c19
1 changed files with 0 additions and 2 deletions

View File

@ -931,8 +931,6 @@ impl TapLeaf {
/// 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", serde(crate = "actual_serde"))]
pub struct ScriptLeaf { pub struct ScriptLeaf {
/// The [`TapLeaf`] /// The [`TapLeaf`]
leaf: TapLeaf, leaf: TapLeaf,