added reference to NIP-94

This commit is contained in:
Fernando Bittencourt 2024-03-28 13:51:39 +00:00 committed by GitHub
parent 7062bbc4ef
commit 49328e0e1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

16
95.md
View File

@ -29,21 +29,7 @@ This event must not be returned in generic searches. It should only be returned
}
```
Another defined event is the `1065` which is used as a header for the data contained in an event 1064. This way the data can be disclosed without overloading the communications when sending a large amount of data.
```json
{
"id": <32-bytes lowercase hex-encoded sha256 of the the serialized event data>,
"pubkey": <32-bytes lowercase hex-encoded public key of the event creator>,
"created_at": <unix timestamp in seconds>,
"kind": 1065,
"tags": [
["e",<event id 1064 you want to disclose>],
],
"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>
}
````
The file description is defined by [NIP-94](https://github.com/nostr-protocol/nips/blob/master/94.md)
Relay Behavior
---------------