upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/94.md
diff options
context:
space:
mode:
authorFernando Bittencourt <frbitten@gmail.com>2023-03-28 09:57:56 +0100
committerfiatjaf_ <fiatjaf@gmail.com>2023-04-20 08:06:14 -0300
commitf766a850cd6cc72f35681906b519031745cbc5a8 (patch)
tree18f9a383cb4365bde45038fad32a9b06e048a685 /94.md
parentbd32adfc2aba90b3a3e486c7b856c93480301992 (diff)
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>
Diffstat (limited to '94.md')
-rw-r--r--94.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/94.md b/94.md
index 533b49c..005ef26 100644
--- a/94.md
+++ b/94.md
@@ -8,7 +8,7 @@ Also the goal is to create a base on the protocol for this bountsr "Filesharing
8Nostr event 8Nostr event
9------------------ 9------------------
10This 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: 10This 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:
11* `url` the url to download the file 11* `r` the url to download the file, without trailing slash
12* `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) 12* `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)
13* `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 13* `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
14* `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". 14* `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
20 "created_at": <unix timestamp in seconds>, 20 "created_at": <unix timestamp in seconds>,
21 "kind": 1063, 21 "kind": 1063,
22 "tags": [ 22 "tags": [
23 ["url",<string with URL of file>], 23 ["r",<string with URI of file>],
24 ["decrypt",<algorithm>,<Decryption Params>], 24 ["decrypt",<algorithm>,<Decryption Params>],
25 ["type", <MIME type>], 25 ["type", <MIME type>],
26 ["hash", "LKN]Rv%2Tw=w]~RBVZRi};RPxuwH", <"blurhash" or "sha256">] 26 ["hash", "LKN]Rv%2Tw=w]~RBVZRi};RPxuwH", <"blurhash" or "sha256">]