nostr-rs-relay

My dev fork of nostr-rs-relay
git clone git://jb55.com/nostr-rs-relay
Log | Files | Refs | README | LICENSE

commit 78da92ccca522fa109e8950649bb49ac7299e460
parent 72f1c19b213cb532f624c11c4759336c1a867273
Author: Greg Heartsfield <scsibug@imap.cc>
Date:   Sat, 10 Sep 2022 20:45:09 -0500

feat: advertise support for NIP-09 and NIP-12 in relay info

NIP-01 prefix search, and NIP-12 generic tags are no longer marked as
experimental.

NIP-11 relay info advertises NIP-09 event deletion and NIP-12 generic
tag search support.

Diffstat:
MREADME.md | 4++--
Msrc/info.rs | 2+-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -14,13 +14,13 @@ NIPs with a relay-specific implementation are listed here. - [x] NIP-01: Core event model - [x] NIP-01: Hide old metadata events -- [x] NIP-01: Id/Author prefix search (_experimental_) +- [x] NIP-01: Id/Author prefix search - [x] NIP-02: Hide old contact list events - [ ] NIP-03: OpenTimestamps - [x] NIP-05: Mapping Nostr keys to DNS identifiers - [x] NIP-09: Event deletion - [x] NIP-11: Relay information document -- [x] NIP-12: Generic tag search (_experimental_) +- [x] NIP-12: Generic tag search - [x] NIP-15: End of stored events notice - [x] NIP-16: Replaceable and ephemeral events - [x] NIP-22: Event `created_at` limits (_future-dated events only_) diff --git a/src/info.rs b/src/info.rs @@ -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, 16, 22]), + supported_nips: Some(vec![1, 2, 9, 11, 12, 15, 16, 22]), software: Some("https://git.sr.ht/~gheartsfield/nostr-rs-relay".to_owned()), version: CARGO_PKG_VERSION.map(|x| x.to_owned()), }