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

nip09: filtered deletation. #1509

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

kehiy
Copy link
Contributor

@kehiy kehiy commented Sep 21, 2024

using the current model, it's hard to remove events with complex conditions. client needs to turn user action into a huge event and send it to relay and then relay needs to do an iteration and remove them.

using f tag, we can make it much easier. filter already exists on relay and clients and they can parse, construct, and interpret them. for relys it's easy to turn this filter to a remove/delete query on different query languages compared with the current model.

then clients can support delete account, removing all chat messages, or even getting the filter as input from the user.

of course, the "authors" filed MUST be considered only if the matching events are kind of in the control of the "pubkey" field owner in the case of moderated communities and similar stuff.

@kehiy kehiy changed the title nip09: filter deletation. nip09: filtered deletation. Sep 21, 2024
"kind": 5,
"pubkey": <32-bytes hex-encoded public key of the event creator>,
"tags": [
["f", "{\"kinds\":[1,7]}"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the author pubkey implicit here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the author field of course can only be set to event public key. maybe in groups and moderated communities, more public keys would be helpful...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants