From 2cf287450ef88d56bbb9439ffe3d97ec03ae882f Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 13 Jan 2025 13:37:59 -0800 Subject: [PATCH] Add nip for delegated aggregate signature verification --- xx.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 xx.md diff --git a/xx.md b/xx.md new file mode 100644 index 00000000..65e87149 --- /dev/null +++ b/xx.md @@ -0,0 +1,20 @@ +NIP-XX +====== + +Delegated aggregate signature verification +------------------------------------------ + +`draft` `optional` + +Relays MAY choose to strip signatures from events. If they do so, they MUST provide a proof to clients that the relay has validated signatures for all events returned for a given REQ, using the `REQ-PROOF` verb with the request ID as the first argument, and the proof string as the second argument. This proof MUST be provided after the given `EVENT`s are sent, and applies to all previous events returned for the request since the last proof. + +``` +-> ["REQ", "", ] +<- ["EVENT", "", ] +<- ["EVENT", "", ] +<- ["EOSE", ""] +<- ["REQ-PROOF", "", ""] // This proof applies to the previous two events +<- ["EVENT", "", ] +<- ["REQ-PROOF", "", ""] // This proof applies to the most recent event only +-> ["CLOSE", ""] +```