-
Notifications
You must be signed in to change notification settings - Fork 582
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
NIPXX: encrypted events #548
Comments
This is too broad. It creates a ton of flexibility, confusion, incompatibility across all Nostr apps in a single stroke. |
fair. i'll focus on encrypted delegation, which we're using now, and just worry about the rest later. |
this is exactly NIP59 #468 by the way |
This is closed, but I agree with the need for general encryption.... especially for replaceable events. My approach would be:
For example, if tag exists For now, NIP-04 encryption could be applied... until/unless that changes. |
@decentropy #715 will land soon, fixing NIP 04, just FYI. Also #716 will cover many use cases for encryption. For more general-purpose encrypted payloads (e.g. encrypted lists), your approach could be helpful, but only really if the tag is a single character so you can avoid pulling the events in the first place, otherwise you can try to parse the event and if it fails discard it. |
"private" versions of a number of nip's are needed, not just direct messages
likewise
we may want a trivial way to say:
Imagine we post an event
of the analogous message.
without having to specify a NIP specification for a private and group-private version every existing message type
now, when a client sees this NIPXX event, they can simple decode it and, recursively, interpret it as another event of the encrypted kind/content and tags...
this opens up encryption across every use case
most useful (to me) is encrypted delegation, which allows two people to create a new blinded channel, and also encrypted product listings
we can do this NIP up nicer than NIP4, with an ephemeral public key and hashed shared secret, and make it more flexible and useful than NIP4 as well by allowing it to be generic. you can make an encrypted version of any well-known event now, and clients can treat them as if they are, otherwise, regular events.
(we can also restrict it so that it explicitly excludes itself from recursion... one level only!)
The text was updated successfully, but these errors were encountered: