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

Support NIP-26 event delegation #26

Open
alexgleason opened this issue Mar 7, 2023 · 4 comments
Open

Support NIP-26 event delegation #26

alexgleason opened this issue Mar 7, 2023 · 4 comments

Comments

@alexgleason
Copy link
Contributor

This is probably going to be necessary for long term viability of the protocol: https://github.com/nostr-protocol/nips/blob/master/26.md#relay--client-querying-support

It basically allows apps to generate new pubkeys like access tokens for a main pubkey.

But relays also have to return those events when clients query for the main pubkey.

@hoytech
Copy link
Owner

hoytech commented Mar 9, 2023

Hi, thanks for the comment! I have briefly looked into the event delegation specs, but haven't really thought about how strfry would implement it yet.

@alexgleason
Copy link
Contributor Author

There are apparently counter arguments to NIP-26 that I hadn't heard before: https://gleasonator.com/@3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefa459d@mostr.pub/posts/ATc1E5QdHaEv8iZJFg

Just noting it.

@alexgleason
Copy link
Contributor Author

I submitted a proposal to delete a pubkey: nostr-protocol/nips#377

Curious if you think this is feasible from the relay perspective.

@pjv
Copy link

pjv commented Mar 18, 2023

@alexgleason @hoytech certainly one part of the functionality in NIP-69 is already kluge-able in strfry with a write policy plugin. None of the DB deletion of course, and obviously not the most performant way to do this, but you could certainly parse kind 5 events and then write any ‘p’ tag pubkeys to a local file and treat it as a blacklist.

Better all-around of course to have the core be compliant with the NIP, but you could do some of this today.

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

No branches or pull requests

3 participants