upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrbittencourt <fbittencourt@neadvance.com>2023-03-17 13:41:46 +0000
committerfiatjaf_ <fiatjaf@gmail.com>2023-04-20 08:06:14 -0300
commitbd32adfc2aba90b3a3e486c7b856c93480301992 (patch)
tree1e88bd60d181d4acf0d16d8585bfd9ce2d5ed73a
parent40fa44b0fc0f358995bf8c162087a11173d912cc (diff)
change to regular event
-rw-r--r--94.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/94.md b/94.md
index dfc77d9..533b49c 100644
--- a/94.md
+++ b/94.md
@@ -7,7 +7,7 @@ Also the goal is to create a base on the protocol for this bountsr "Filesharing
7 7
8Nostr event 8Nostr event
9------------------ 9------------------
10This NIP specifies the use of the `30063` 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* `url` the url to download the file
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
@@ -18,12 +18,12 @@ This NIP specifies the use of the `30063` event type (parameterized replaceable
18 "id": <32-bytes lowercase hex-encoded sha256 of the the serialized event data>, 18 "id": <32-bytes lowercase hex-encoded sha256 of the the serialized event data>,
19 "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, 19 "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>,
20 "created_at": <unix timestamp in seconds>, 20 "created_at": <unix timestamp in seconds>,
21 "kind": 30063, 21 "kind": 1063,
22 "tags": [ 22 "tags": [
23 ["url",<string with URL of file>], 23 ["url",<string with URL of file>],
24 ["decrypt",<algorithm>,<Decryption Params>], 24 ["decrypt",<algorithm>,<Decryption Params>],
25 ["type", "image/webp"], 25 ["type", <MIME type>],
26 ["hash", "LKN]Rv%2Tw=w]~RBVZRi};RPxuwH", "blurhash"] 26 ["hash", "LKN]Rv%2Tw=w]~RBVZRi};RPxuwH", <"blurhash" or "sha256">]
27 ], 27 ],
28 "content": <description>, 28 "content": <description>,
29 "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> 29 "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>