@@ -34,7 +34,7 @@ use super::{
34
34
DescriptorTrait , SortedMultiVec ,
35
35
} ;
36
36
/// A Segwitv0 wsh descriptor
37
- #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq ) ]
37
+ #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq , Hash ) ]
38
38
pub struct Wsh < Pk : MiniscriptKey > {
39
39
/// underlying miniscript
40
40
inner : WshInner < Pk > ,
@@ -79,7 +79,7 @@ impl<Pk: MiniscriptKey> Wsh<Pk> {
79
79
}
80
80
81
81
/// Wsh Inner
82
- #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq ) ]
82
+ #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq , Hash ) ]
83
83
pub enum WshInner < Pk : MiniscriptKey > {
84
84
/// Sorted Multi
85
85
SortedMulti ( SortedMultiVec < Pk , Segwitv0 > ) ,
@@ -282,7 +282,7 @@ impl<P: MiniscriptKey, Q: MiniscriptKey> TranslatePk<P, Q> for Wsh<P> {
282
282
}
283
283
284
284
/// A bare Wpkh descriptor at top level
285
- #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq ) ]
285
+ #[ derive( Clone , Ord , PartialOrd , Eq , PartialEq , Hash ) ]
286
286
pub struct Wpkh < Pk : MiniscriptKey > {
287
287
/// underlying publickey
288
288
pk : Pk ,
0 commit comments