2024-05-24 16:58:40 -04:00
NIP-62
======
2024-08-25 09:51:52 -04:00
Request to Vanish
-----------------
2024-05-24 16:58:40 -04:00
`draft` `optional`
2024-10-14 10:17:58 -04:00
This NIP offers a Nostr-native way to request a complete reset of a key's fingerprint on the web. This procedure is legally binding in some jurisdictions, and thus, supporters of this NIP should truly delete events from their database.
2024-05-24 16:58:40 -04:00
2024-08-25 09:51:52 -04:00
## Request to Vanish from Relay
2024-05-24 16:58:40 -04:00
2024-08-25 09:51:52 -04:00
Kind `62` requests a specific relay to delete everything, including [NIP-09 ](09.md ) Deletion Events, from the `.pubkey` until its `.created_at` .
2024-05-24 16:58:40 -04:00
2024-09-18 11:55:42 -04:00
```jsonc
2024-05-24 16:58:40 -04:00
{
"kind": 62,
2024-08-25 09:53:29 -04:00
"pubkey": < 32-byte hex-encoded public key of the event creator > ,
2024-05-24 16:58:40 -04:00
"tags": [
["relay", "< relay url > "]
],
"content": "< reason or note > ",
//...other fields
}
```
The tag list MUST include at least one `relay` value.
Content MAY include a reason or a legal notice to the relay operator.
2024-08-25 09:53:29 -04:00
Relays MUST fully delete any events from the `.pubkey` if their service URL is tagged in the event.
2024-05-24 16:58:40 -04:00
2024-10-14 18:22:48 -04:00
Relays SHOULD delete all [NIP-59 ](59.md ) Gift Wraps that p-tagged the `.pubkey` if their service URL is tagged in the event, deleting all DMs to the pubkey.
2024-08-25 09:51:52 -04:00
Relays MUST ensure the deleted events cannot be re-broadcasted into the relay.
2024-10-14 18:22:48 -04:00
Relays MAY store the signed request to vanish for bookkeeping.
2024-05-24 16:58:40 -04:00
2024-10-14 18:22:48 -04:00
Paid relays or relays that restrict who can post MUST also follow the request to vanish regardless of the user's status.
2024-05-24 16:58:40 -04:00
2024-10-14 18:18:18 -04:00
Publishing a deletion request event (Kind `5` ) against a request to vanish has no effect. Clients and relays are not obliged to support "unrequest vanish" functionality.
2024-10-14 10:17:58 -04:00
2024-05-28 16:58:28 -04:00
Clients SHOULD send this event to the target relays only.
2024-05-24 16:58:40 -04:00
2024-08-25 09:51:52 -04:00
## Global Request to Vanish
2024-05-24 16:58:40 -04:00
2024-08-25 09:53:29 -04:00
To request ALL relays to delete everything, the event MUST include a `relay` tag with the value `ALL_RELAYS` in uppercase.
2024-05-24 16:58:40 -04:00
2024-09-18 11:55:36 -04:00
```jsonc
2024-05-24 16:58:40 -04:00
{
2024-05-28 16:58:28 -04:00
"kind": 62,
2024-08-25 09:53:29 -04:00
"pubkey": < 32-byte hex-encoded public key of the event creator > ,
2024-05-28 16:58:28 -04:00
"tags": [
["relay", "ALL_RELAYS"]
],
"content": "< reason > ",
2024-05-24 16:58:40 -04:00
//...other fields
}
```
2024-10-14 10:17:58 -04:00
Clients SHOULD broadcast this event to as many relays as possible.