From c85d1c005fac69489a81aa9d5e8bee4b87cc05d8 Mon Sep 17 00:00:00 2001 From: nostronaut Date: Thu, 25 May 2023 13:12:03 +0200 Subject: [PATCH] mmr: add mmr feature --- crates/nostr/Cargo.toml | 1 + crates/nostr/src/event/builder.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/crates/nostr/Cargo.toml b/crates/nostr/Cargo.toml index a012648bd..9d0931b4e 100644 --- a/crates/nostr/Cargo.toml +++ b/crates/nostr/Cargo.toml @@ -25,6 +25,7 @@ nip19 = ["dep:bech32"] nip21 = ["nip19"] nip46 = ["nip04"] nip47 = ["nip04"] +mmr = [] [dependencies] aes = { version = "0.8", optional = true } diff --git a/crates/nostr/src/event/builder.rs b/crates/nostr/src/event/builder.rs index 3183452cb..297b9040d 100644 --- a/crates/nostr/src/event/builder.rs +++ b/crates/nostr/src/event/builder.rs @@ -172,6 +172,7 @@ impl EventBuilder { } /// Build MMR [`Event`] + #[cfg(feature = "mmr")] pub fn to_mmr_event( self, keys: &Keys, @@ -186,6 +187,7 @@ impl EventBuilder { } /// Build unsigned MMR [`Event`] + #[cfg(feature = "mmr")] pub fn to_unsigned_mmr_event( self, pubkey: XOnlyPublicKey,