Only for file-URL content

This commit is contained in:
water 2024-11-05 10:29:46 +08:00
parent 51389571bc
commit c00e2b7550

4
17.md
View File

@ -54,7 +54,7 @@ Kind `14`s MUST never be signed. If it is signed, the message might leak to rela
["decryptiion-nonce", "<decryption-nonce>"],
// rest of tags...
],
"content": "<file-url-or-base64-content-in-plain-text>"
"content": "<file-url>"
}
```
@ -64,7 +64,7 @@ Kind 15 is used for sending encrypted file event messages:
- `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 (`<file-url>`) or the encrypted data in base64 format (`<base64-content-in-plain-text>`).
- `content`: The URL of the file (`<file-url>`).
## Chat Rooms