diff options
| author | franzap <126621043+fr4nzap@users.noreply.github.com> | 2024-02-13 12:40:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-13 09:40:57 -0300 |
| commit | 3f13eb34bf21f693ee7a8ddaba19229600fd323e (patch) | |
| tree | 66c881ff66b29482b529fd8cc22d9560cb1b7382 /51.md | |
| parent | 84541be74117922ca0b9ab5589b658efeae60e09 (diff) | |
File metadata sets (#1040)
* File metadata sets
* Make kind specific to release artifacts
* Update example
* Update README
Diffstat (limited to '51.md')
| -rw-r--r-- | 51.md | 25 |
1 files changed, 25 insertions, 0 deletions
| @@ -49,6 +49,7 @@ Aside from their main identifier, the `"d"` tag, sets can optionally have a `"ti | |||
| 49 | | Curation sets | 30005 | groups of videos picked by users as interesting and/or belonging to the same category | `"a"` (kind:34235 videos) | | 49 | | Curation sets | 30005 | groups of videos picked by users as interesting and/or belonging to the same category | `"a"` (kind:34235 videos) | |
| 50 | | Interest sets | 30015 | interest topics represented by a bunch of "hashtags" | `"t"` (hashtags) | | 50 | | Interest sets | 30015 | interest topics represented by a bunch of "hashtags" | `"t"` (hashtags) | |
| 51 | | Emoji sets | 30030 | categorized emoji groups | `"emoji"` (see [NIP-30](30.md)) | | 51 | | Emoji sets | 30030 | categorized emoji groups | `"emoji"` (see [NIP-30](30.md)) | |
| 52 | | Release artifact sets | 30063 | groups of files of a software release | `"e"` (kind:1063 [file metadata](94.md) events), `"i"` (application identifier, typically reverse domain notation), `"version"` | | ||
| 52 | 53 | ||
| 53 | ## Deprecated standard lists | 54 | ## Deprecated standard lists |
| 54 | 55 | ||
| @@ -103,6 +104,30 @@ Some clients have used these lists in the past, but they should work on transiti | |||
| 103 | } | 104 | } |
| 104 | ``` | 105 | ``` |
| 105 | 106 | ||
| 107 | ### A _release artifact set_ of an Example App | ||
| 108 | |||
| 109 | ```json | ||
| 110 | { | ||
| 111 | "id": "567b41fc9060c758c4216fe5f8d3df7c57daad7ae757fa4606f0c39d4dd220ef", | ||
| 112 | "pubkey": "d6dc95542e18b8b7aec2f14610f55c335abebec76f3db9e58c254661d0593a0c", | ||
| 113 | "created_at": 1695327657, | ||
| 114 | "kind": 30063, | ||
| 115 | "tags": [ | ||
| 116 | ["d", "ak8dy3v7"], | ||
| 117 | ["i", "com.example.app"], | ||
| 118 | ["version", "0.0.1"], | ||
| 119 | ["title", "Example App"], | ||
| 120 | ["image", "http://cdn.site/p/com.example.app/icon.png"], | ||
| 121 | ["e", "d78ba0d5dce22bfff9db0a9e996c9ef27e2c91051de0c4e1da340e0326b4941e"], // Windows exe | ||
| 122 | ["e", "f27e2c91051de0c4e1da0d5dce22bfff9db0a9340e0326b4941ed78bae996c9e"], // MacOS dmg | ||
| 123 | ["e", "9d24ddfab95ba3ff7c03fbd07ad011fff245abea431fb4d3787c2d04aad02332"], // Linux AppImage | ||
| 124 | ["e", "340e0326b340e0326b4941ed78ba340e0326b4941ed78ba340e0326b49ed78ba"] // PWA | ||
| 125 | ], | ||
| 126 | "content": "Example App is a decentralized marketplace for apps", | ||
| 127 | "sig": "a9a4e2192eede77e6c9d24ddfab95ba3ff7c03fbd07ad011fff245abea431fb4d3787c2d04aad001cb039cb8de91d83ce30e9a94f82ac3c5a2372aa1294a96bd" | ||
| 128 | } | ||
| 129 | ``` | ||
| 130 | |||
| 106 | ## Encryption process pseudocode | 131 | ## Encryption process pseudocode |
| 107 | 132 | ||
| 108 | ```scala | 133 | ```scala |