From 2a33cceff6cbea14006791a4b2342391fd1db0be Mon Sep 17 00:00:00 2001 From: Valentino Giudice Date: Wed, 26 Nov 2025 13:05:45 +0100 Subject: [PATCH] Improve NIP-C0 (#2138) --- C0.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C0.md b/C0.md index c88e1455..dcb72c6b 100644 --- a/C0.md +++ b/C0.md @@ -23,9 +23,9 @@ The `.content` field contains the actual code snippet text. - `extension` - File extension (without the dot). Examples: "js", "py", "rs" - `description` - Brief description of what the code does - `runtime` - Runtime or environment specification (e.g., "node v18.15.0", "python 3.11") -- `license` - License under which the code is shared (e.g., "MIT", "GPL-3.0", "Apache-2.0") +- `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 - `dep` - Dependency required for the code to run (can be repeated) -- `repo` - Reference to a repository where this code originates +- `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>:"`. If a repository announcement is referenced, a recommended relay URL where to find the event should be provided as an additional parameter ## Format