identity.rs
identity.rs copied to clipboard
Add a `verify_prehashed` method to `identity.rs`'s JWS verifiers
Description of change
Enable pre-hash verification for EcDSA verifier. Small refactor for JWS verifiers.
Links to any relevant issues
Fixes issue #1418
Type of change
- [ ] Bug fix (a non-breaking change which fixes an issue)
- [x] Enhancement (a non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation Fix
How the change has been tested
Ran tests
Change checklist
- [x] I have followed the contribution guidelines for this project
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] New and existing unit tests pass locally with my changes