-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update event types and builder APIs to prevent building events …
…that dont align with the protocol spec (#357) * feat: Enforce no unexpected fields in events * chore: pass StreamID to Header factory * chore: StreamId.to_vec cannot fail * chore: Add comment clarifying that SignedEvent is only for the rust js-ceramic client * Revert "chore: Add comment clarifying that SignedEvent is only for the rust js-ceramic client" This reverts commit cb53168. * chore: Rename signed::Payload to signed::Envelope for clarity * wip * WIP builder API * feat: event builder passes tests, type state pattern * chore: make model required in init event header * add data event builder * chore: rename Event to RawEvent * Add function to sign events * fix it * make private * add car file encoding * cache cids * wip: remove jws and related types * comments and small cleanups * remove deny_unknown_fields directive (for now) * comment out unused constants * fix clippy * fix test * rm unused deps * rm unusued value type --------- Co-authored-by: Nathaniel Cook <nvcook42@gmail.com>
- Loading branch information
1 parent
f433c64
commit 50cc8ba
Showing
24 changed files
with
561 additions
and
1,065 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.