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"]
25
25
nip21 = [" nip19" ]
26
26
nip46 = [" nip04" ]
27
27
nip47 = [" nip04" ]
28
+ mmr = []
28
29
29
30
[dependencies ]
30
31
aes = { version = " 0.8" , optional = true }
Original file line number Diff line number Diff line change 6
6
use core:: fmt;
7
7
#[ cfg( not( target_arch = "wasm32" ) ) ]
8
8
use std:: time:: Instant ;
9
-
9
+ # [ cfg ( feature = "mmr" ) ]
10
10
use bitcoin_hashes:: sha256:: Hash ;
11
11
#[ cfg( target_arch = "wasm32" ) ]
12
12
use instant:: Instant ;
@@ -172,6 +172,7 @@ impl EventBuilder {
172
172
}
173
173
174
174
/// Build MMR [`Event`]
175
+ #[ cfg( feature = "mmr" ) ]
175
176
pub fn to_mmr_event (
176
177
self ,
177
178
keys : & Keys ,
@@ -186,6 +187,7 @@ impl EventBuilder {
186
187
}
187
188
188
189
/// Build unsigned MMR [`Event`]
190
+ #[ cfg( feature = "mmr" ) ]
189
191
pub fn to_unsigned_mmr_event (
190
192
self ,
191
193
pubkey : XOnlyPublicKey ,
You can’t perform that action at this time.
0 commit comments