We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description
There have been a lot of discussions about the future of verification results:
What if we make the verification result type an interface, so that we have more flexibility to make changes in the future without breaking callers.
Currently we have:
type VerificationResult struct { MediaType string `json:"mediaType"` Statement *in_toto.Statement `json:"statement,omitempty"` Signature *SignatureVerificationResult `json:"signature,omitempty"` VerifiedTimestamps []TimestampVerificationResult `json:"verifiedTimestamps"` VerifiedIdentity *CertificateIdentity `json:"verifiedIdentity,omitempty"`
We could instead return a type like:
type VerificationResult interface { Statement() *in_toto.Statement Signature() *SignatureVerificationResult VerifiedTimestamps() []TimestampVerificationResult VerifiedIdentity() *CertificateIdentity MarshalJSON() ([]byte, error) }
The text was updated successfully, but these errors were encountered:
I spent some time looking into how feasible this is, and I changed my opinion on it.
Sorry, something went wrong.
No branches or pull requests
Description
There have been a lot of discussions about the future of verification results:
What if we make the verification result type an interface, so that we have more flexibility to make changes in the future without breaking callers.
Currently we have:
We could instead return a type like:
The text was updated successfully, but these errors were encountered: