mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
Update group message content encryption
This commit is contained in:
parent
50101643f1
commit
f9ae559274
2
104.md
2
104.md
|
@ -198,7 +198,7 @@ Group Events are published using an ephemeral Nostr keypair to obfuscate the num
|
|||
"sig": <signed with ephemeral sender key>
|
||||
}
|
||||
```
|
||||
- The `content` field is a [tls-style](https://www.rfc-editor.org/rfc/rfc9420.html#name-the-message-mls-media-type) serialized [`MLSMessage`](https://www.rfc-editor.org/rfc/rfc9420.html#section-6-4) object.
|
||||
- The `content` field is a [tls-style](https://www.rfc-editor.org/rfc/rfc9420.html#name-the-message-mls-media-type) serialized [`MLSMessage`](https://www.rfc-editor.org/rfc/rfc9420.html#section-6-4) object which is then encrypted according to [NIP-44](44.md) but using the MLS [`exporter_secret`](https://www.rfc-editor.org/rfc/rfc9420.html#section-8.5) and the group ID values to calulate the `conversation key` value. The rest of the NIP-44 encryption process is the same. The `exporter_secret` value should be generated with a 32-byte length and labeled `nostr`. This `exporter_secret` value is rotated on each new epoch in the group. Clients should generate a new 32-byte value each time they process a valid `Commit` message.
|
||||
- The `pubkey` is the hex-encoded public key of the ephemeral sender.
|
||||
- The `h` tag is the group ID value
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user