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

Support for signature and header verification #232

Merged
merged 3 commits into from
Jan 17, 2024
Merged

Conversation

samlown
Copy link
Collaborator

@samlown samlown commented Jan 17, 2024

  • Adds a "Verify" method to the envelope that makes it easier to check an optional list of keys against the signatures used to sign the document.
  • head.Header now has a "Contains" method that facilitates testing if the current header includes all the fields from the provided header.

@samlown samlown requested a review from cavalle January 17, 2024 14:45
@samlown samlown merged commit f5fb0d6 into main Jan 17, 2024
2 checks passed
@samlown samlown deleted the signature-verify branch January 17, 2024 16:58
Copy link
Contributor

@cavalle cavalle left a comment

Choose a reason for hiding this comment

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

Handy methods! Looking great

@samlown
Copy link
Collaborator Author

samlown commented Jan 18, 2024

The Header "contains" method is a bit bespoke, I was hoping for something more generic, but this felt like the best way for the time being to handle comparisons. I'm surprised we didn't have have this earlier though 😆 🤦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants