upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfiatjaf <fiatjaf@gmail.com>2023-05-05 09:18:02 -0300
committerfiatjaf <fiatjaf@gmail.com>2023-05-05 09:18:02 -0300
commitb8aec7dad561a8b27e22a91638dd04f2851a0c5c (patch)
tree8812b72ae94b18bf3ff96cecc82267282094417e
parentbc9d469c203a25a706727219fa7d37dacaf6040d (diff)
nip-31: dealing with custom unknown events.
-rw-r--r--31.md13
-rw-r--r--README.md1
2 files changed, 14 insertions, 0 deletions
diff --git a/31.md b/31.md
new file mode 100644
index 0000000..675c249
--- /dev/null
+++ b/31.md
@@ -0,0 +1,13 @@
1NIP-31
2======
3
4Dealing with unknown event kinds
5--------------------------------
6
7`draft` `optional` `author:pablof7z` `author:fiatjaf`
8
9When creating a new custom event kind that is part of a custom protocol and isn't meant to be read as text (like `kind:1`), clients should use the `tags` field to store all their custom data related to their protocol, and use the `content` field to write a short human-readable plaintext summary of what that event is about.
10
11The intent is that social clients, used to display only `kind:1` notes, can still show something in case a custom event pops up in their timelines.
12
13These clients that only know `kind:1` are not expected to ask relays for events of different kinds, but users could still reference these weird events on their notes, and without proper context these could be nonsensical notes. Having the fallback text makes that situation much better -- even if only for making the user aware that they should try to view that custom event elsewhere.
diff --git a/README.md b/README.md
index a4a63a4..f3ae501 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/fia
45- [NIP-26: Delegated Event Signing](26.md) 45- [NIP-26: Delegated Event Signing](26.md)
46- [NIP-27: Text Note References](27.md) 46- [NIP-27: Text Note References](27.md)
47- [NIP-28: Public Chat](28.md) 47- [NIP-28: Public Chat](28.md)
48- [NIP-31: Dealing with Unknown Events](31.md)
48- [NIP-33: Parameterized Replaceable Events](33.md) 49- [NIP-33: Parameterized Replaceable Events](33.md)
49- [NIP-36: Sensitive Content](36.md) 50- [NIP-36: Sensitive Content](36.md)
50- [NIP-39: External Identities in Profiles](39.md) 51- [NIP-39: External Identities in Profiles](39.md)