nostr-protocol / nips

Nostr Implementation Possibilities
2.4k stars 583 forks source link

Add optional event kind to encrypt/decrypt #1354

Open greenart7c3 opened 4 months ago

greenart7c3 commented 4 months ago

This adds an optional event kind parameter to the encrypt/decrypt functions, allowing signers to show the user what the app is attempting to encrypt/decrypt.

vitorpamplona commented 4 months ago

Is this because of the private zap stuff?

greenart7c3 commented 4 months ago

No, it's to improve how we show messages on signers Right now if you send a decrypt message the only thing the signer can show the user is the encrypted text This would allow to show something like "Amethyst would like to decrypt a mute list event" This would also allow enabling/disabling encryption/decryption for different parts of an app like I trust this app for decrypting my bookmarks but not my dms

vitorpamplona commented 4 months ago

ohhh that's nice! lgtm!