diff options
| -rw-r--r-- | 94.md | 1 | ||||
| -rw-r--r-- | 95.md | 1 |
2 files changed, 2 insertions, 0 deletions
| @@ -24,6 +24,7 @@ This NIP specifies the use of the `30063` event type (parameterized replaceable | |||
| 24 | ["url",<string with URL of file>], | 24 | ["url",<string with URL of file>], |
| 25 | ["decrypt",<algorithm>,<key>], | 25 | ["decrypt",<algorithm>,<key>], |
| 26 | ["p", <32-bytes hex of a pubkey>, <recommended relay URL>], | 26 | ["p", <32-bytes hex of a pubkey>, <recommended relay URL>], |
| 27 | ["hash",< SHA256 hexencoded string of the file> | ||
| 27 | ], | 28 | ], |
| 28 | "content": <description>, | 29 | "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> | 30 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> |
| @@ -25,6 +25,7 @@ The `NIP-94` can be used to broadcast the ID of that event, with the ` and ` tag | |||
| 25 | ["d", <string with name of file>], | 25 | ["d", <string with name of file>], |
| 26 | ["decrypt",<algorithm>,<key>], | 26 | ["decrypt",<algorithm>,<key>], |
| 27 | ["p", <32-bytes hex of a pubkey>, <recommended relay URL>], | 27 | ["p", <32-bytes hex of a pubkey>, <recommended relay URL>], |
| 28 | ["hash",< SHA256 hexencoded string of the raw data>] | ||
| 28 | ], | 29 | ], |
| 29 | "content": <string with base64 data>, | 30 | "content": <string with base64 data>, |
| 30 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> | 31 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> |