-
Notifications
You must be signed in to change notification settings - Fork 41
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
Feat: enhance certificate chain verification #2098
Feat: enhance certificate chain verification #2098
Conversation
Test Results 4 files ± 0 51 suites ±0 11m 6s ⏱️ +27s Results for commit 471f1af. ± Comparison against base commit b725d10. This pull request removes 9 and adds 20 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
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.
LGTM 🔥
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.
LGTM 🚀
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.
LGTM
- Split verification into multiple sub functions - Clear separation of 'verify_standard_certificate' vs 'verify_genesis_certificate' - Make 'verify_standard_certificate' stateless and part of the CertificateVerifier trait - Rewrite 'verify_certificate' with better readability.
- Enhance tests readability with 'assert_error_matches' macro - Simplify tests with mock dependency injector - Add missing test cases.
- 'mithril-common' from '0.4.82' to '0.4.83'.
ec3bc90
to
471f1af
Compare
Content
This PR includes enhancements to the verification of the certificate chain:
CertificateVerifier
traitPre-submit checklist