mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
add hash tag
This commit is contained in:
parent
0ef5486e56
commit
8ea7c51f9b
1
94.md
1
94.md
|
@ -24,6 +24,7 @@ This NIP specifies the use of the `30063` event type (parameterized replaceable
|
||||||
["url",<string with URL of file>],
|
["url",<string with URL of file>],
|
||||||
["decrypt",<algorithm>,<key>],
|
["decrypt",<algorithm>,<key>],
|
||||||
["p", <32-bytes hex of a pubkey>, <recommended relay URL>],
|
["p", <32-bytes hex of a pubkey>, <recommended relay URL>],
|
||||||
|
["hash",< SHA256 hexencoded string of the file>
|
||||||
],
|
],
|
||||||
"content": <description>,
|
"content": <description>,
|
||||||
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
|
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
|
||||||
|
|
1
95.md
1
95.md
|
@ -25,6 +25,7 @@ The `NIP-94` can be used to broadcast the ID of that event, with the ` and ` tag
|
||||||
["d", <string with name of file>],
|
["d", <string with name of file>],
|
||||||
["decrypt",<algorithm>,<key>],
|
["decrypt",<algorithm>,<key>],
|
||||||
["p", <32-bytes hex of a pubkey>, <recommended relay URL>],
|
["p", <32-bytes hex of a pubkey>, <recommended relay URL>],
|
||||||
|
["hash",< SHA256 hexencoded string of the raw data>]
|
||||||
],
|
],
|
||||||
"content": <string with base64 data>,
|
"content": <string with base64 data>,
|
||||||
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
|
"sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user