diff options
| author | Valentino Giudice <valentino.giudice96@gmail.com> | 2025-11-26 13:05:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-26 09:05:45 -0300 |
| commit | 2a33cceff6cbea14006791a4b2342391fd1db0be (patch) | |
| tree | cabf9a7c4180dc6e71efe5997c82344b98b8798f | |
| parent | 844c6fe15c07362d56233192dc3a49b66a709166 (diff) | |
Improve NIP-C0 (#2138)
| -rw-r--r-- | C0.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -23,9 +23,9 @@ The `.content` field contains the actual code snippet text. | |||
| 23 | - `extension` - File extension (without the dot). Examples: "js", "py", "rs" | 23 | - `extension` - File extension (without the dot). Examples: "js", "py", "rs" |
| 24 | - `description` - Brief description of what the code does | 24 | - `description` - Brief description of what the code does |
| 25 | - `runtime` - Runtime or environment specification (e.g., "node v18.15.0", "python 3.11") | 25 | - `runtime` - Runtime or environment specification (e.g., "node v18.15.0", "python 3.11") |
| 26 | - `license` - License under which the code is shared (e.g., "MIT", "GPL-3.0", "Apache-2.0") | 26 | - `license` - License under which the code (along with any related data contained within the event, when available, such as the description) is shared. This MUST be a standard [SPDX](https://spdx.org/licenses/) short identifier (e.g., "MIT", "GPL-3.0-or-later", "Apache-2.0") when available. An additional parameter containing a reference to the actual text of the license MAY be provided. This tag can be repeated, to indicate multi-licensing, allowing recipients to use the code under any license of choosing among the referenced ones |
| 27 | - `dep` - Dependency required for the code to run (can be repeated) | 27 | - `dep` - Dependency required for the code to run (can be repeated) |
| 28 | - `repo` - Reference to a repository where this code originates | 28 | - `repo` - Reference to a repository where this code originates. This MUST be a either standard URL or, alternatively, the address of a [NIP-34](34.md) Git repository annoucement event in the form `"30617:<32-bytes hex a pubkey>:<d tag value>"`. If a repository announcement is referenced, a recommended relay URL where to find the event should be provided as an additional parameter |
| 29 | 29 | ||
| 30 | ## Format | 30 | ## Format |
| 31 | 31 | ||