mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
Apply suggestions from code review
add sugestion of arthurfranca and nryo-o Co-authored-by: arthurfranca <arthur.a.franca@gmail.com> Co-authored-by: Ryo_o <127748188+nryo-o@users.noreply.github.com>
This commit is contained in:
parent
bd32adfc2a
commit
f766a850cd
4
94.md
4
94.md
|
@ -8,7 +8,7 @@ Also the goal is to create a base on the protocol for this bountsr "Filesharing
|
|||
Nostr event
|
||||
------------------
|
||||
This NIP specifies the use of the `1063` event type (parameterized replaceable event), having in `content` a description of the file content, and a list of tags described below:
|
||||
* `url` the url to download the file
|
||||
* `r` the url to download the file, without trailing slash
|
||||
* `type` a string indicating the data type of the file. The MIME types format must be used (https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types)
|
||||
* `decrypt` (optional) If the file is encrypted, you must indicate in the first value the algorithm used to encrypt the file and in the second value the parameters that allow the decryption of the file
|
||||
* `hash` containing the SHA-256 hexencoded string of the file or the BlurHash string (for images). The third array value is the lowercase chosen algorithm name: "sha256" or "blurhash".
|
||||
|
@ -20,7 +20,7 @@ This NIP specifies the use of the `1063` event type (parameterized replaceable e
|
|||
"created_at": <unix timestamp in seconds>,
|
||||
"kind": 1063,
|
||||
"tags": [
|
||||
["url",<string with URL of file>],
|
||||
["r",<string with URI of file>],
|
||||
["decrypt",<algorithm>,<Decryption Params>],
|
||||
["type", <MIME type>],
|
||||
["hash", "LKN]Rv%2Tw=w]~RBVZRi};RPxuwH", <"blurhash" or "sha256">]
|
||||
|
|
Loading…
Reference in New Issue
Block a user