-
Notifications
You must be signed in to change notification settings - Fork 19
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
Split specification.md into three separate files. #23
Conversation
Previously, the specification did not cleanly separate the (required) protocol from the (optional) encoding, and it also contained a lot of supplemental background material. Now the protocol, encoding (envelope), and background are three separate files. This should hopefully make the spec easier to use.
Co-authored-by: Aditya Sirish <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning this up, @MarkLodato. Except for one typo this looks good to me. Feel free to address any of the other comments as you see fit.
Specifications for: | ||
|
||
* [Protocol](protocol.md) (*required*) | ||
* [Data structure](envelope.md), a.k.a. "Envelope" (*recommended*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯 for "Envelope" instead of "Wrapper". The latter always had a different connotation for me.
protocol.md
Outdated
To verify: | ||
|
||
- Receive and decode SERIALIZED_BODY, PAYLOAD_TYPE, SIGNATURE, and KEYID. | ||
Reject if decoding fails. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor nit: Maybe also point to the envelope document here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Please check the wording.
- Fix typos. - Add TODO to update "current" to "legacy" whenever TUF/in-toto switch to this. - Add "Why not existing TUF/in-toto" to README. - Clean up references to the JSON envelope in protocol.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick turn-around!
Previously, the specification did not cleanly separate the (required)
protocol from the (optional) encoding, and it also contained a lot of
supplemental background material.
Now the protocol, encoding (envelope), and background are three separate
files. This should hopefully make the spec easier to use.