From 973fe0140785564aadd1f41ad460606bee9d7492 Mon Sep 17 00:00:00 2001 From: LeandroBitcoiner21 <107815651+leandro21b@users.noreply.github.com> Date: Tue, 28 Mar 2023 19:40:03 -0300 Subject: [PATCH] Update 70.md --- 70.md | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/70.md b/70.md index 88f4d1e7..e7142e35 100644 --- a/70.md +++ b/70.md @@ -10,9 +10,9 @@ Collaborative Events Collaborative Events are events involving several users that can be useful for applications such as publications involving several users, creation of content involving several content producers, publications by companies with the signature of several partners, public digital contracts, etc. -The event is created and signed by its creator, then he distributes the event for the other users involved to sign, sending can be done in several ways, for example through `Encrypted Direct Message KIND-4`, after the event is signed by all parties involved, it can be sent to the relays. +The event is created and signed by its creator, then he distributes the event for the other users involved to sign, sending can be done in several ways, for example through `Encrypted Direct Message KIND-4`, after the event is signed by all parties involved, it can be sent to the relays, the collaborative event can be replaceable or not, if it is not replaceable it will be identified by `KIND-70`, if it is replaceable it will be identified by `KIND-10070` -## Example: +## Fully Signed Example: ```json { @@ -26,4 +26,36 @@ The event is created and signed by its creator, then he distributes the event fo } ``` -Collaborative events are identified by `KIND-70` +## Fully Signed Replaceable Example: + +```json +{ + "id": , + "pubkey": [, ], + "created_at": , + "kind": 10070, + "tags": [], + "content": , + "sig": [, ] +} +``` + +## Partially Signed Collaborative Event + +A partially signed collaborative event can be published but in that case it must be replaced every time a new signature is added and therefore a partially signed collaborative event is identified by `KIND-10069` + +## Partially Signed Example: + +```json +{ + "id": , + "pubkey": [, ], + "created_at": , + "kind": 10069, + "tags": [], + "content": , + "sig": [] +} +``` + +After a collaborative event is fully signed by the involved parties it can be published as replaceable or not according to the first 2 examples.