-
Notifications
You must be signed in to change notification settings - Fork 39
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
Move verify logic to pkg #120
Conversation
Signed-off-by: Hector Fernandez <[email protected]>
62e5f15
to
9c61a11
Compare
Codecov Report
@@ Coverage Diff @@
## main #120 +/- ##
==========================================
+ Coverage 51.31% 51.62% +0.30%
==========================================
Files 14 15 +1
Lines 682 678 -4
==========================================
Hits 350 350
+ Misses 295 291 -4
Partials 37 37
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Hector Fernandez <[email protected]>
@haydentherapper Thanks for the review! I addressed all your comments. |
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.
nice!
return verifyHashedMessages(ts.HashAlgorithm.New(), ts.HashedMessage, artifact) | ||
} | ||
|
||
func verifyTSRWithChain(ts *timestamp.Timestamp, certPool *x509.CertPool) error { |
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.
nit (to @malancas for the other issue): We'll want to rename this function to make it clear that this takes a trust root store (a single cert pool) rather than a chain
Signed-off-by: Hector Fernandez [email protected]
Summary
related to #119
Release Note
Move verify logic to its own package.
Documentation