From 51389571bc928a54ad33ce541abe317b600db1dc Mon Sep 17 00:00:00 2001 From: water <130329555+water783@users.noreply.github.com> Date: Sat, 12 Oct 2024 18:19:48 +0800 Subject: [PATCH] add 'decryption-nonce' --- 17.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/17.md b/17.md index 806cc8c..bca9bbd 100644 --- a/17.md +++ b/17.md @@ -50,7 +50,8 @@ Kind `14`s MUST never be signed. If it is signed, the message might leak to rela ["subject", ""], ["file-type", ""], ["encryption-algorithm", ""], - ["decryption-key", ""] + ["decryption-key", ""], + ["decryptiion-nonce", ""], // rest of tags... ], "content": "" @@ -62,6 +63,7 @@ Kind 15 is used for sending encrypted file event messages: - `file-type`: Specifies the MIME type of the attached file (e.g., `image/jpeg`, `audio/mpeg`, etc.). - `encryption-algorithm`: Indicates the encryption algorithm used for encrypting the file. Supported algorithms may include `aes-gcm`, `chacha20-poly1305`,`aes-cbc` etc. - `decryption-key`: The decryption key that will be used by the recipient to decrypt the file. +- `decryption-nonce`: The decryption nonce that will be used by the recipient to decrypt the file. - `content`: Contains either the URL of the file (``) or the encrypted data in base64 format (``). ## Chat Rooms