diff options
| author | Pablo Fernandez <p@f7z.io> | 2023-11-23 17:52:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-23 17:52:48 +0200 |
| commit | 60256a62675a165c4d4fd9811a19a9cbf6a9e7fd (patch) | |
| tree | 5c450154d373caafc37f324dd01e20338308c9d6 /94.md | |
| parent | 43d50ee42409252a1313928cd437d55fd7bf7bf4 (diff) | |
| parent | 7822a8b12670312aff104ddc03066425882f739d (diff) | |
Merge branch 'master' into nip88
Diffstat (limited to '94.md')
| -rw-r--r-- | 94.md | 9 |
1 files changed, 3 insertions, 6 deletions
| @@ -4,7 +4,7 @@ NIP-94 | |||
| 4 | File Metadata | 4 | File Metadata |
| 5 | ------------- | 5 | ------------- |
| 6 | 6 | ||
| 7 | `draft` `optional` `author:frbitten` `author:kieran` `author:lovvtide` `author:fiatjaf` `author:staab` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | The purpose of this NIP is to allow an organization and classification of shared files. So that relays can filter and organize in any way that is of interest. With that, multiple types of filesharing clients can be created. NIP-94 support is not expected to be implemented by "social" clients that deal with kind:1 notes or by longform clients that deal with kind:30023 articles. | 9 | The purpose of this NIP is to allow an organization and classification of shared files. So that relays can filter and organize in any way that is of interest. With that, multiple types of filesharing clients can be created. NIP-94 support is not expected to be implemented by "social" clients that deal with kind:1 notes or by longform clients that deal with kind:30023 articles. |
| 10 | 10 | ||
| @@ -28,9 +28,6 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 28 | 28 | ||
| 29 | ```json | 29 | ```json |
| 30 | { | 30 | { |
| 31 | "id": <32-bytes lowercase hex-encoded sha256 of the the serialized event data>, | ||
| 32 | "pubkey": <32-bytes lowercase hex-encoded public key of the event creator>, | ||
| 33 | "created_at": <unix timestamp in seconds>, | ||
| 34 | "kind": 1063, | 31 | "kind": 1063, |
| 35 | "tags": [ | 32 | "tags": [ |
| 36 | ["url",<string with URI of file>], | 33 | ["url",<string with URI of file>], |
| @@ -47,8 +44,8 @@ This NIP specifies the use of the `1063` event type, having in `content` a descr | |||
| 47 | ["summary", <excerpt>], | 44 | ["summary", <excerpt>], |
| 48 | ["alt", <description>] | 45 | ["alt", <description>] |
| 49 | ], | 46 | ], |
| 50 | "content": <caption>, | 47 | "content": "<caption>", |
| 51 | "sig": <64-bytes hex of the signature of the sha256 hash of the serialized event data, which is the same as the "id" field> | 48 | ... |
| 52 | } | 49 | } |
| 53 | ``` | 50 | ``` |
| 54 | 51 | ||