Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIP-109: Pubkey Deletion #377

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions 69.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
NIP-69
======

Deleting a Pubkey
-----------------
alexgleason marked this conversation as resolved.
Show resolved Hide resolved

`draft` `optional` `author:alexgleason`

Events of [kind `5`](09.md) may contain a "p" tag instead of "e" tags. The "p" tag MUST match the `pubkey` of the signed event, and this event indicates that the author wishes for relays and clients to stop showing events for this pubkey, and to reject future events from the pubkey.

### Client behavior

Clients which recieve a pubkey deletion event SHOULD treat all events from that pubkey as if they were deleted in accordance with [NIP-09](09.md).

Clients may give users the option to "Delete your account" with this type of event. Clients SHOULD display a prominent message explaining that the action is not reversible, and SHOULD require special confirmation such as requiring the user to type a message.
alexgleason marked this conversation as resolved.
Show resolved Hide resolved

### Relay behavior

Relays receiving a pubkey deletion event MUST mark the pubkey as deleted, and MUST stop delivering events from this pubkey to clients, EXCEPT for events of kind `5`. Relays MAY delete events by this pubkey from their database, and SHOULD reject future events from the pubkey.
alexgleason marked this conversation as resolved.
Show resolved Hide resolved

Relays SHOULD preserve events of kind `5` from the pubkey, as well as continue to collect and distribute events of kind `5`.

### Example event

```json5
{
"kind": 5,
"pubkey": "6027adac157831dfe9d2f988c1b8b7a75d9296a7d42a0f9ed056a320925b0e13",
"tags": [
["p", "6027adac157831dfe9d2f988c1b8b7a75d9296a7d42a0f9ed056a320925b0e13"],
],
"content": "", // optional message, same as NIP-09
alexgleason marked this conversation as resolved.
Show resolved Hide resolved
// ...
}
```
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ NIPs stand for **Nostr Implementation Possibilities**. They exist to document wh
- [NIP-57: Lightning Zaps](57.md)
- [NIP-58: Badges](58.md)
- [NIP-65: Relay List Metadata](65.md)
- [NIP-69: Deleting a Pubkey](69.md)
alexgleason marked this conversation as resolved.
Show resolved Hide resolved
- [NIP-78: Application-specific data](78.md)

## Event Kinds
Expand Down