nips/81.md
2024-02-07 18:33:15 -05:00

1.1 KiB

NIP-81

Private Relationship Status

draft optional

A new kind:30382 event documents a "Private Relationship Status" between two users of the network.

It is defined as a parameterized replaceable event with a single d tag as a random UUID per pubkey. An optional n tag adds the target key to an unbound list.

The other tags are stringified, NIP-44-encrypted and placed inside the .content of the event.

For example:

{
  "kind": 30382,
  "tags": [
    ["d", "<randomUUID>"],
    ["n", "Clients"]
  ],
  "content": "<NIP-44 encrypted Stringified TAG-List(
    ["p", "<pubkey>", "relay"]
    ["nickname", "<My buddy>"]
    ["summary", "<Summary of the relationship>"],
    ["nip82secret", "<secret used to decrypt medical data for this pubkey>"]
  )",
  ...other fields
}

nickname SHOULD be used instead of the person's display name in all interfaces

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, with or without n tags, to determine how to assemble feeds, group messages, and when to display content.