This commit is contained in:
arthurfranca 2024-12-11 09:28:51 -03:00 committed by GitHub
commit 340acfa4f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

22
70.md
View File

@ -16,7 +16,7 @@ Relays that want to accept such events MUST first require that the client perfor
## The tag ## The tag
The tag is a simple tag with a single item: `["-"]`. It may be added to any event. The tag is a simple tag with a single item: `["-"]`. It may be added to any event. It should be added to replaceable and addressable events, except for the `kind:10002` one.
## Example flow ## Example flow
@ -43,3 +43,23 @@ It's also possible to create closed access feeds with this when the publisher ha
Even though it's ultimately impossible to restrict the spread of information on the internet (for example, one of the members of the closed group may want to take an event intended to be restricted and republish it to other relays), most relays would be happy to not facilitate the acts of these so-called "pirates", in respect to the original decision of the author and therefore gladly reject these republish acts if given the means to. Even though it's ultimately impossible to restrict the spread of information on the internet (for example, one of the members of the closed group may want to take an event intended to be restricted and republish it to other relays), most relays would be happy to not facilitate the acts of these so-called "pirates", in respect to the original decision of the author and therefore gladly reject these republish acts if given the means to.
This NIP gives these authors and relays the means to clearly signal when a given event is not intended to be republished by third parties. This NIP gives these authors and relays the means to clearly signal when a given event is not intended to be republished by third parties.
## Clearing Protected Events
The `kind:20070` ephemeral event asks the tagged relay to delete all of the author's protected events.
Relays MUST require authentication to fulfill the clearing request. Too old `kind:20070` events MUST be ignored.
The event is useful to prevent replaceable and addressable events from becoming outdated after an user edits their [NIP-65](65.md) write relays.
Example:
```jsonc
{
kind: 20070,
tags: [
["relays", "wss://relay1.example", "wss://relay2.example"]
],
// ...other fields
}
```