From 96c2a11ac6b827df4abe835c80ca7ac1aa946dc6 Mon Sep 17 00:00:00 2001 From: Aaron D Goldman Date: Mon, 21 Aug 2023 15:28:01 -0700 Subject: [PATCH 1/2] feat: swap stream --- CIPs/cip-147.md | 79 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 CIPs/cip-147.md diff --git a/CIPs/cip-147.md b/CIPs/cip-147.md new file mode 100644 index 0000000..ab5197a --- /dev/null +++ b/CIPs/cip-147.md @@ -0,0 +1,79 @@ +--- +cip: 147 +title: swap stream +author: , FirstName LastName (@GitHubUsername) and GitHubUsername (@GitHubUsername)> +discussions-to: +status: Draft +category: +created: +edited: +requires: +replaces: +--- + + + + + + + + + + + + + + + + + +## Simple Summary + +Simple summary goes here. + + +## Abstract + +Abstract goes here. + + +## Motivation + +Motivation goes here. + + +## Specification + +Specification goes here. + + +## Rationale + +Rationale goes here. + + +## Backwards Compatibility + +Backwards compatibility goes here. + + +## Implementation + +Implementation goes here. + + +## Security Considerations + +Security considerations go here. + + +## Copyright +Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/). From e1f11586be5cc7e81d4dbd9386692d5aa4e62d08 Mon Sep 17 00:00:00 2001 From: Mohsin Zaidi <2236875+smrz2001@users.noreply.github.com> Date: Wed, 23 Aug 2023 18:22:57 -0400 Subject: [PATCH 2/2] content from pairing --- CIPs/cip-147.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/CIPs/cip-147.md b/CIPs/cip-147.md index ab5197a..cf9f868 100644 --- a/CIPs/cip-147.md +++ b/CIPs/cip-147.md @@ -1,12 +1,12 @@ --- cip: 147 -title: swap stream -author: , FirstName LastName (@GitHubUsername) and GitHubUsername (@GitHubUsername)> +title: Swap Stream +author: Aaron Goldman (@aarongoldman), Mohsin Zaidi (@smrz2001) discussions-to: status: Draft category: -created: -edited: +created: 2023-08-21 +edited: 2023-08-23 requires: replaces: --- @@ -36,18 +36,18 @@ You can leave these HTML comments in your CIP and delete the visible text guides ## Simple Summary - -Simple summary goes here. - +A new stream type where the stream state corresponds to the latest event. ## Abstract - -Abstract goes here. +A Swap Stream enables you to replace the entire content of a stream. This is different from existing Ceramic streams, +which consist of a sequence of PATCH operations that must all be considered in order to determine the state of the +stream. ## Motivation - -Motivation goes here. +When dealing with a Patch Stream, aggregating the stream state requires following events back to the Init Event. A Swap +Stream SWAP operation allows a Ceramic node to ignore previous data in the stream, and a STOMP operation allows the node +to ignore previous headers and data. This removes the need to constantly follow events back to the Init Event. ## Specification