- Notifications
You must be signed in to change notification settings - Fork 0
feat(docs): Improve cddl definitions #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 46 commits
Commits
Show all changes
47 commits Select commit Hold shift + click to select a range
b5dcecf fix(docs): Updated TODO place holder text with context
neil-iohk b69bf5e fix(docs): Render docs with better placeholder
stevenj 83f4486 docs(docs): Add more detail to proposal document specification
stevenj cb1d4b6 Merge branch 'main' into feat/add-more-doc-definitions
stevenj 7cb2039 docs(docs): Add details to the Proposal Comment document
stevenj 976cb62 docs(docs): Add more proposal submission actions specifications
stevenj d8d3e4b docs(docs): random cleanups
stevenj e3efce8 docs(docs): fix markdown lint issues
stevenj e84e991 docs(docs): Use a CID for the document hash
stevenj 7e5a545 docs(docs): Add document revocations to proposals and comments
stevenj 4e4d1fa docs(docs): turn hash into a map for better future proofing
stevenj c348c39 docs(docs): Use defined cbor tag and binary format for IPLD Content I…
stevenj 9ca6df0 docs(docs): Removed obsolete cddl definition
stevenj b69144d docs(docs): WIP cleanup and validaetg cddl defintions
stevenj b6ac004 docs(docs): Prep work to make it easier to generate CDDL files from s…
stevenj 472e481 docs(docs): WIP cleanup of CDDL generation
stevenj b5ce707 docs(docs): Remove empty protected headers, as they can't be empty
stevenj f0adee6 feat(docs): Use latest draft cat-ci which supports relative file incl…
stevenj f19a2bb fix(docs): cddl generation improvements
stevenj 60945bc fix(docs): misc bug fixes
stevenj ce004e0 Merge branch 'main' into feat/improve-cddl-definitions
stevenj 3966784 feat(Python): Make sure all python in the repo is properly formatted …
stevenj 1c9d852 Merge branch 'feat/improve-cddl-definitions' of github.com:input-outp…
stevenj 11c7950 fix(docs): spelling
stevenj aa25114 docs(docs): Properly generalize document, signature and metadata headers
stevenj 16a85ea feat(docs): Make types.md generate under the new framework
stevenj 4d2f51e feat(docs): Improve metadata docs, and generate individual cddl files…
stevenj 16f26f2 fix(docs): lint issue
stevenj b776ae0 fix(docs): cleanup spec deserialization to make accessing data easier…
stevenj f22f814 fix(docs): Make individual pages with the new spec generation framework
stevenj f0da499 fix: remove now unused files
stevenj bd63fa1 docs(docs): Add all the new docs generation stuff
stevenj 26dcbe9 docs(docs): Fix lint issues
stevenj 5e83744 Merge branch 'main' into feat/improve-cddl-definitions
stevenj e933cf6 fix(docs): one sentence mper link markdown fix
stevenj 5d48787 Merge branch 'feat/improve-cddl-definitions' of github.com:input-outp…
stevenj abbf707 fix(docs): spell checking for dummys
stevenj 88a2687 fix(docs): remove dev file
stevenj d46f8f9 fix(docs): Fix spec generation validation
stevenj 534fc4b fix(docs): Use latest cat-ci version
stevenj 981680b Merge branch 'main' into feat/improve-cddl-definitions
stevenj d1e0962 Merge branch 'main' into feat/improve-cddl-definitions
stevenj 34b8e86 fix(docs): remove duplicated status on spec generation/validation
stevenj f4b2dc2 fix(docs): rename iana_media_types to just media_type
stevenj 99951a6 Merge branch 'feat/improve-cddl-definitions' of github.com:input-outp…
stevenj be54ab7 feat(docs): Also support CoAP encoded media types.
stevenj 96e9580 fix(docs): Properly constrain CoAP types to the known media types.
stevenj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| | @@ -4,4 +4,4 @@ icon: fontawesome/solid/tags | |
| | ||
| # Tag Index | ||
| | ||
| [TAGS] | ||
| <!-- material/tags --> | ||
2 changes: 1 addition & 1 deletion 2 docs/src/architecture/08_concepts/catalyst_voting/cddl/Earthfile
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
2 changes: 1 addition & 1 deletion 2 docs/src/architecture/08_concepts/immutable_ledger/cddl/Earthfile
This file contains hidden or 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 hidden or 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 hidden or 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
19 changes: 0 additions & 19 deletions 19 docs/src/architecture/08_concepts/signed_doc/cddl/additional_meta.cddl
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions 8 docs/src/architecture/08_concepts/signed_doc/cddl/collaborators.cddl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ; collaborators | ||
| | ||
| | ||
| ; Allowed Collaborators on the next subsequent version of a document. | ||
| collaborators = [ * catalyst_id_kid ] | ||
| | ||
| ; UTF8 Catalyst ID URI encoded as a bytes string. | ||
| catalyst_id_kid = bytes | ||
8 changes: 8 additions & 0 deletions 8 docs/src/architecture/08_concepts/signed_doc/cddl/document_id.cddl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ; Unique Document Identifier | ||
| | ||
| | ||
| ; Document ID | ||
| document_id = uuid_v7 | ||
| | ||
| ; UUIDv7 | ||
| uuid_v7 = #6.37(bytes .size 16) |
27 changes: 27 additions & 0 deletions 27 docs/src/architecture/08_concepts/signed_doc/cddl/document_ref.cddl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| ; document_ref | ||
| | ||
| | ||
| ; Reference to another Signed Document | ||
| document_ref = [ 1* [ | ||
| document_id, | ||
| document_ver, | ||
| document_locator | ||
| ] ] | ||
| | ||
| ; Document ID | ||
| document_id = uuid_v7 | ||
| | ||
| ; UUIDv7 | ||
| uuid_v7 = #6.37(bytes .size 16) | ||
| | ||
| ; Document Version | ||
| document_ver = uuid_v7 | ||
| | ||
| ; Where a document can be located, must be a unique identifier. | ||
| document_locator = { | ||
| "cid" => cid | ||
| } | ||
| | ||
| ; IPLD content identifier | ||
| ; TODO: add size limits if possible | ||
| cid = #6.42(bytes) |
8 changes: 8 additions & 0 deletions 8 docs/src/architecture/08_concepts/signed_doc/cddl/document_type.cddl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ; Unique Document Type Identifier | ||
| | ||
| | ||
| ; Document Type | ||
| document_type = [ 1* uuid_v4 ] | ||
| | ||
| ; UUIDv4 | ||
| uuid_v4 = #6.37(bytes .size 16) |
8 changes: 8 additions & 0 deletions 8 docs/src/architecture/08_concepts/signed_doc/cddl/document_ver.cddl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ; Unique Chronological Document Version Identifier | ||
| | ||
| | ||
| ; Document Version | ||
| document_ver = uuid_v7 | ||
| | ||
| ; UUIDv7 | ||
| uuid_v7 = #6.37(bytes .size 16) |
11 changes: 11 additions & 0 deletions 11 docs/src/architecture/08_concepts/signed_doc/cddl/revocations.cddl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ; revocations | ||
| | ||
| | ||
| ; List of revoked versions of this document. | ||
| revocations = [ * document_ver ] / true | ||
| | ||
| ; Document Version | ||
| document_ver = uuid_v7 | ||
| | ||
| ; UUIDv7 | ||
| uuid_v7 = #6.37(bytes .size 16) |
8 changes: 8 additions & 0 deletions 8 docs/src/architecture/08_concepts/signed_doc/cddl/section_ref.cddl
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ; section_ref | ||
| | ||
| | ||
| ; Reference to a section in a referenced document. | ||
| section_ref = json_pointer | ||
| | ||
| ; RFC6901 Standard JSON Pointer | ||
| json_pointer = text |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.