Skip to content

Commit

Permalink
mmr: add mmr feature
Browse files Browse the repository at this point in the history
  • Loading branch information
nostronaut committed May 25, 2023
1 parent 3daeb11 commit c85d1c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/nostr/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ nip19 = ["dep:bech32"]
nip21 = ["nip19"]
nip46 = ["nip04"]
nip47 = ["nip04"]
mmr = []

[dependencies]
aes = { version = "0.8", optional = true }
Expand Down
2 changes: 2 additions & 0 deletions crates/nostr/src/event/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ impl EventBuilder {
}

/// Build MMR [`Event`]
#[cfg(feature = "mmr")]
pub fn to_mmr_event(
self,
keys: &Keys,
Expand All @@ -186,6 +187,7 @@ impl EventBuilder {
}

/// Build unsigned MMR [`Event`]
#[cfg(feature = "mmr")]
pub fn to_unsigned_mmr_event(
self,
pubkey: XOnlyPublicKey,
Expand Down

0 comments on commit c85d1c0

Please sign in to comment.