From a3292f4ae7856c69e5ace3feb2811574ba12e826 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 4 Sep 2023 11:35:30 -0400 Subject: [PATCH] First Draft --- 81.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 81.md diff --git a/81.md b/81.md new file mode 100644 index 00000000..864544b0 --- /dev/null +++ b/81.md @@ -0,0 +1,38 @@ +NIP-81 +====== + +Relationship Status +------------------- + +`draft` `optional` `author:vitorpamplona` + +## Abstract + +Creates a replaceable event to assert the level of trust from the author to any other pubkey. The wise-spread use of these statuses between pubkeys is not ideal for Kind 3 or NIP-51 list structures. + +# Relationship Status Event + +A special event with `kind:30382` "Relationship Status Event" is defined as a _parameterized replaceable event_ with a single `d` tag as the target pubkey. The other tags are stringified, NIP-44 encrypted and placed inside the `.content` of the event. + +For example: + +```js +{ + "kind": 30382, + "tags": [ + ["d", "612ae..e610f"], + ], + "content": ""], + ["nickname", "< nickname to be used instead of the person's name in all interfaces >"] + ["summary", ""], + )", + ...other fields +} +``` + +Status MUST be a case-sensitive displayble category name with the expecation to group users by it. + +Profile screens MAY display the summary of the relationship and allow the user to change the tags of this event. + +Clients MAY filter by `kind:30382` to determine how to assemble feeds, group messages and when to display content. \ No newline at end of file