From 8c85a2f91310d7605c2ec778162c1a7bd7584ec0 Mon Sep 17 00:00:00 2001 From: Kay Date: Thu, 2 Jan 2025 17:32:32 +0000 Subject: [PATCH 1/3] adding x tag to nip56. --- 56.md | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/56.md b/56.md index f7b1b1a943..74c64eb58f 100644 --- a/56.md +++ b/56.md @@ -22,7 +22,7 @@ are reporting. If reporting a note, an `e` tag MUST also be included referencing the note id. -A `report type` string MUST be included as the 3rd entry to the `e` or `p` tag +A `report type` string MUST be included as the 3rd entry to the `e`, `p` or `x` (SHOULD be info hash of a blob which is intended to be report) tag being reported, which consists of the following report types: - `nudity` - depictions of nudity, porn, etc. @@ -45,7 +45,7 @@ Example events { "kind": 1984, "tags": [ - ["p", , "nudity"], + ["p", "", "nudity"], ["L", "social.nos.ontology"], ["l", "NS-nud", "social.nos.ontology"] ], @@ -58,8 +58,8 @@ Example events { "kind": 1984, "tags": [ - ["e", , "illegal"], - ["p", ] + ["e", "", "illegal"], + ["p", ""] ], "content": "He's insulting the king!", // other fields... @@ -70,13 +70,24 @@ Example events { "kind": 1984, "tags": [ - ["p", , "impersonation"] + ["p", "", "impersonation"] ], "content": "Profile is impersonating nostr:", // other fields... } ``` +```jsonc +{ + "kind": 1984, + "tags": [ + ["x", "", "malware"] + ], + "content": "This file contains malware software in it.", + // other fields... +} +``` + Client behavior --------------- From c63a784de7056a7f1ab301b65c878a6802455289 Mon Sep 17 00:00:00 2001 From: Kay Date: Fri, 3 Jan 2025 20:05:59 +0000 Subject: [PATCH 2/3] more details. --- 56.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/56.md b/56.md index 74c64eb58f..10984e15fe 100644 --- a/56.md +++ b/56.md @@ -22,7 +22,7 @@ are reporting. If reporting a note, an `e` tag MUST also be included referencing the note id. -A `report type` string MUST be included as the 3rd entry to the `e`, `p` or `x` (SHOULD be info hash of a blob which is intended to be report) tag +A `report type` string MUST be included as the 3rd entry to the `e`, `p` or `x` tag being reported, which consists of the following report types: - `nudity` - depictions of nudity, porn, etc. @@ -33,7 +33,9 @@ being reported, which consists of the following report types: - `impersonation` - someone pretending to be someone else - `other` - for reports that don't fit in the above categories -Some report tags only make sense for profile reports, such as `impersonation` +Some report tags only make sense for profile reports, such as `impersonation`. + +- `x` tags SHOULD be info hash of a blob which is intended to be report. when the `x` tag is represented client MUST include an `e` tag which is the id of the event that contains the mentioned blob. also, additionally these events can contain a `server` tag to point to media servers which may contain the mentioned media. `l` and `L` tags MAY be also be used as defined in [NIP-32](32.md) to support further qualification and querying. @@ -81,7 +83,9 @@ Example events { "kind": 1984, "tags": [ - ["x", "", "malware"] + ["x", "", "malware"], + ["e", "", "malware"], + ["server", "https://you-may-find-the-blob-here.com"] ], "content": "This file contains malware software in it.", // other fields... From d2819d24ce3b4e99bcde38bfa216f316b4e72259 Mon Sep 17 00:00:00 2001 From: "k." Date: Sat, 4 Jan 2025 08:43:22 +0000 Subject: [PATCH 3/3] Update 56.md --- 56.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/56.md b/56.md index 10984e15fe..dc6f098362 100644 --- a/56.md +++ b/56.md @@ -85,7 +85,7 @@ Example events "tags": [ ["x", "", "malware"], ["e", "", "malware"], - ["server", "https://you-may-find-the-blob-here.com"] + ["server", "https://you-may-find-the-blob-here.com/path-to-url.ext"] ], "content": "This file contains malware software in it.", // other fields...