Skip to content
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

API: make _StatementBuilder public #1077

Merged
merged 3 commits into from
Jul 31, 2024
Merged

Conversation

woodruffw
Copy link
Member

@woodruffw woodruffw commented Jul 31, 2024

Adds the public StatementBuilder API, created by making _StatementBuilder public. Also adds an alternative construction route for Statement, allowing it to be directly constructed from an internal (still private) _Statement, avoiding an unnecessary serde round-trip.

Note: This makes StatementBuilder public, but explicitly doesn't commit it to SemVer just yet; I don't expect it to change very much, but in the event it does I don't want us locked into design decisions for the entire 3.x lifetime 🙂

Closes #1076.

Signed-off-by: William Woodruff <[email protected]>
@woodruffw woodruffw added the component:api Public APIs label Jul 31, 2024
@woodruffw woodruffw self-assigned this Jul 31, 2024
Signed-off-by: William Woodruff <[email protected]>
Signed-off-by: William Woodruff <[email protected]>
@woodruffw
Copy link
Member Author

CC @mihaimaruseac for visibility 🙂

@woodruffw woodruffw requested a review from jku July 31, 2024 15:58
Copy link

@mihaimaruseac mihaimaruseac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This looks exactly what we'd need for model_transparency

@woodruffw woodruffw merged commit 7466e1b into main Jul 31, 2024
25 checks passed
@woodruffw woodruffw deleted the ww/statementbuilder-public branch July 31, 2024 18:38
@woodruffw woodruffw added this to the 3.1 milestone Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:api Public APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert in-toto Statement to Sigstore DSSE Statement via a single call
3 participants