feat(NIP-16): Implement NIP16

NIP16 introduces a replaceable and ephemeral event range:
[10000..20000) for replaceable and [20000..30000) for
ephemeral.
This commit is contained in:
Semisol
2022-05-31 01:03:00 +03:00
committed by Greg Heartsfield
parent a36ad378f6
commit 168cfc3b26
2 changed files with 43 additions and 45 deletions

View File

@@ -35,7 +35,7 @@ impl From<config::Info> for RelayInfo {
description: i.description,
pubkey: i.pubkey,
contact: i.contact,
supported_nips: Some(vec![1, 2, 11, 15]),
supported_nips: Some(vec![1, 2, 11, 15, 16]),
software: Some("https://git.sr.ht/~gheartsfield/nostr-rs-relay".to_owned()),
version: CARGO_PKG_VERSION.map(|x| x.to_owned()),
}