This commit is contained in:
erik aronesty 2023-06-04 09:50:35 -04:00
parent e9783b1a80
commit 5534326195

6
112.md
View File

@ -8,11 +8,11 @@ Encrypted Group Chat
This NIP defines new event kinds for encrypted group chat with optional forward secrecy guidelines.
This NIP builds on the encryption from NIP-44, the gift-wrap of NIP-59 and the distributed chat channel management of NIP-28. It is similar to NIP38, with the exception that gift-wrap is used on every message, and issues like metadata leakage and optional forward secrecy are addressed.
This NIP builds on the encryption from NIP-44, the gift-wrap of NIP-59 and the distributed chat channel management of NIP-28. It is similar to NIP38, with the exception that gift-wrap is used on every message, and issues like metadata leakage and optional forward secrecy are addressed.
It works by creating a shared secret that is used to encrypt the group or channel messages. Only the participants know that secret, so only such members can read/write to this group chat. This effectively hides metadata from external users. See drawbacks below.
It reserves 4 event kinds (104) for immediate use.
It reserves 8 event kinds (1059, 400-406) for immediate use.
- [`1059`](https://github.com/nostr-protocol/nips/pull/468) - encrypted gift-wrap, can be used by many protocols
- `400` - wrapped kind: create encrypted channel
@ -20,6 +20,8 @@ It reserves 4 event kinds (104) for immediate use.
- `402` - wrapped kind: change channel metadata
- `403` - wrapped kind: send encrypted message
- `404` - wrapped kind: moved to new channel
- `405` - wrapped kind: delegate new owner
- `406` - wrapped kind: accept owner delegation
## Kind 1059: Encrypted Gift Wrap