mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 16:35:52 -05:00
added reference to NIP-94
This commit is contained in:
parent
7062bbc4ef
commit
49328e0e1e
16
95.md
16
95.md
|
@ -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.
|
The file description is defined by [NIP-94](https://github.com/nostr-protocol/nips/blob/master/94.md)
|
||||||
|
|
||||||
```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>
|
|
||||||
}
|
|
||||||
````
|
|
||||||
|
|
||||||
Relay Behavior
|
Relay Behavior
|
||||||
---------------
|
---------------
|
||||||
|
|
Loading…
Reference in New Issue
Block a user