@@ -34,7 +34,7 @@ use super::{
3434 DescriptorTrait , SortedMultiVec ,
3535} ;
3636/// A Segwitv0 wsh descriptor
37- #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq ) ]
37+ #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq , Hash ) ]
3838pub struct Wsh < Pk : MiniscriptKey > {
3939 /// underlying miniscript
4040 inner : WshInner < Pk > ,
@@ -79,7 +79,7 @@ impl<Pk: MiniscriptKey> Wsh<Pk> {
7979}
8080
8181/// Wsh Inner
82- #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq ) ]
82+ #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq , Hash ) ]
8383pub enum WshInner < Pk : MiniscriptKey > {
8484 /// Sorted Multi
8585 SortedMulti ( SortedMultiVec < Pk , Segwitv0 > ) ,
@@ -282,7 +282,7 @@ impl<P: MiniscriptKey, Q: MiniscriptKey> TranslatePk<P, Q> for Wsh<P> {
282282}
283283
284284/// A bare Wpkh descriptor at top level
285- #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq ) ]
285+ #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq , Hash ) ]
286286pub struct Wpkh < Pk : MiniscriptKey > {
287287 /// underlying publickey
288288 pk : Pk ,
0 commit comments