File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ nip19 = ["dep:bech32"]
2525nip21 = [" nip19" ]
2626nip46 = [" nip04" ]
2727nip47 = [" nip04" ]
28+ mmr = []
2829
2930[dependencies ]
3031aes = { version = " 0.8" , optional = true }
Original file line number Diff line number Diff line change 66use core:: fmt;
77#[ cfg( not( target_arch = "wasm32" ) ) ]
88use std:: time:: Instant ;
9-
9+ # [ cfg ( feature = "mmr" ) ]
1010use bitcoin_hashes:: sha256:: Hash ;
1111#[ cfg( target_arch = "wasm32" ) ]
1212use instant:: Instant ;
@@ -172,6 +172,7 @@ impl EventBuilder {
172172 }
173173
174174 /// Build MMR [`Event`]
175+ #[ cfg( feature = "mmr" ) ]
175176 pub fn to_mmr_event (
176177 self ,
177178 keys : & Keys ,
@@ -186,6 +187,7 @@ impl EventBuilder {
186187 }
187188
188189 /// Build unsigned MMR [`Event`]
190+ #[ cfg( feature = "mmr" ) ]
189191 pub fn to_unsigned_mmr_event (
190192 self ,
191193 pubkey : XOnlyPublicKey ,
You can’t perform that action at this time.
0 commit comments