From cb53168e037663a042083e74ac0bac87da8664fc Mon Sep 17 00:00:00 2001 From: Spencer T Brody Date: Thu, 16 May 2024 11:15:34 -0400 Subject: [PATCH] chore: Add comment clarifying that SignedEvent is only for the rust js-ceramic client --- event/src/unvalidated/ext/signed_event.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/event/src/unvalidated/ext/signed_event.rs b/event/src/unvalidated/ext/signed_event.rs index 31efb8cd2..46054487b 100644 --- a/event/src/unvalidated/ext/signed_event.rs +++ b/event/src/unvalidated/ext/signed_event.rs @@ -8,6 +8,10 @@ use serde::Serialize; const DAG_CBOR_CODEC: u64 = 0x71; /// A ceramic event +/// This is used the format that js-ceramic expects to receive events in via its http api, and is +/// used by the rust client for js-ceramic. This is *not* the actual format of a signed-event in +/// the protocol. +/// TODO: Delete this once js-ceramic is gone, or once we no longer test against it with a rust client. pub struct SignedEvent { /// Cid of the data for the event pub cid: Cid,