Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Ceramic SDK can write data into ceramic-one after read #27

@nathanielc

Description

@nathanielc

The SDK should provide an API to write an event to ceramic-one. The API should accept the JSON content of the document. It should then compute the diff and sign the event build the CAR file and submit the event to ceramic-one.

Implementation Notes

In order to do the diff the SDK will need to know the current state of the document. There are two ways know the state:

  • Query the state via the ceramic-one API
  • Cache the state from a previous write

We should prefer to cache the state over doing a read from the API for every write.

DOD

  • Be able to write data to ceramic-one with a convenient API that abstract the details of constructing the event CAR data
  • Code is browser compatible
  • Minimize the amount of read call to the API that are needed

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions