nips icon indicating copy to clipboard operation
nips copied to clipboard

Update NIP-23 to define encrypted long form content

Open space-shell opened this issue 1 year ago • 3 comments

Overview

This change updates an existing protocol definition to allow for encrypted long form content.

Considering that we currently have applications utilizing the event kind 30024 for long form content and to avoid clients accidentally being presented with encrypted strings it may be preferable to replace the encrypted tag for another event kind all together e.g. event 30025 to represent encrypted long form content.

Potential use cases

  • Article paywalls: utilizing NIP-46 authors can selectively allow decryption acces to private / premium content
  • Private journaling: utilizing relays to distribute and access private journal entries to be viewed and edited via multiple clients.
  • DVM Publication: users may request that DVM's ( NIP-90 ) output their content to Nostr as a private article.

Relates to

https://github.com/nostr-protocol/nips/issues/1183 https://github.com/nostr-protocol/nips/issues/1139 https://github.com/nostr-protocol/nips/issues/583

space-shell avatar Apr 21 '24 10:04 space-shell

  1. I would use a new event kind that is just a copy of 30024 with encryption. That avoids current long-form implementations from breaking (showing encrypted text raw).
  2. NIP-44 encrypts to the pubkey of each receiver. Only that person can decrypt it. Is the use case here to be one-on-one events? Meaning, if I have 2000 followers, I have to create 2000 similar events, each one encrypted to a given receiver?

vitorpamplona avatar Apr 23 '24 14:04 vitorpamplona

Thanks @vitorpamplona for the quick feedback. I think that the new kind is the better option, I'll make the change to this proposal.

My thinking is that via NIP-46, one could utilize an nsecBunker to manage permissions to articles using a remote key 'owned' by the author.

For private journaling, individuals could encrypt and publish articles to themselves.

space-shell avatar Apr 24 '24 14:04 space-shell

Article paywalls: utilizing NIP-46 authors can selectively allow decryption acces to private / premium content

I don't think encryption is a necessary or sufficient condition for sharing premium content.

Private journaling: utilizing relays to distribute and access private journal entries to be viewed and edited via multiple clients.

This is a larger problem that @vitorpamplona for example is trying to solve on another NIP. Just encryption doesn't solve it.

I personally generally think these things are better done on proprietary platforms or separate protocols outside of Nostr.

DVM Publication: users may request that DVM's ( NIP-90 ) output their content to Nostr as a private article.

This should be specified as a DVM response format, not on NIP-23.

fiatjaf avatar Apr 24 '24 17:04 fiatjaf