mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
add 'decryption-nonce'
This commit is contained in:
parent
deb9a6357b
commit
51389571bc
4
17.md
4
17.md
|
@ -50,7 +50,8 @@ Kind `14`s MUST never be signed. If it is signed, the message might leak to rela
|
||||||
["subject", "<conversation-title>"],
|
["subject", "<conversation-title>"],
|
||||||
["file-type", "<file-mime-type>"],
|
["file-type", "<file-mime-type>"],
|
||||||
["encryption-algorithm", "<encryption-algorithm>"],
|
["encryption-algorithm", "<encryption-algorithm>"],
|
||||||
["decryption-key", "<decryption-key>"]
|
["decryption-key", "<decryption-key>"],
|
||||||
|
["decryptiion-nonce", "<decryption-nonce>"],
|
||||||
// rest of tags...
|
// rest of tags...
|
||||||
],
|
],
|
||||||
"content": "<file-url-or-base64-content-in-plain-text>"
|
"content": "<file-url-or-base64-content-in-plain-text>"
|
||||||
|
@ -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.).
|
- `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.
|
- `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-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 (`<file-url>`) or the encrypted data in base64 format (`<base64-content-in-plain-text>`).
|
- `content`: Contains either the URL of the file (`<file-url>`) or the encrypted data in base64 format (`<base64-content-in-plain-text>`).
|
||||||
|
|
||||||
## Chat Rooms
|
## Chat Rooms
|
||||||
|
|
Loading…
Reference in New Issue
Block a user