-
Notifications
You must be signed in to change notification settings - Fork 25
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
Reorganize DSSE library #42
Conversation
adityasaky
commented
Apr 30, 2023
- Reorganizes source files
- Removes Verify method from EnvelopeSigner -> use EnvelopeVerifier directly -- happy to reverse this if needed
- Renames SignVerifier to SignerVerifier (with an alias for compatibility)
* Reorganizes source files * Removes Verify method from EnvelopeSigner -> use EnvelopeVerifier directly * Renames SignVerifier to SignerVerifier (with an alias for compatibility) Signed-off-by: Aditya Sirish <aditya@saky.in>
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, few nits.
|
||
// SignerVerifer provides both the signing and verification interface. | ||
type SignerVerifier interface { | ||
Signer |
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.
could consolidate the Signer
and Verifier
interface here.
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.
Do you mean move Signer and Verifier in here as well and have only the EnvelopeSigner and EnvelopeVerifier implementations in sign.go and verify.go?
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.
Did that in a separate commit.
Signed-off-by: Aditya Sirish <aditya@saky.in>
* Consolidate Signer and Verifier interfaces in signerverifier.go * Move verification tests to verify_test.go * Rename interceptSigner Signed-off-by: Aditya Sirish <aditya@saky.in>
Should we loop someone in on removing |
Signed-off-by: Aditya Sirish <aditya@saky.in>
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
I'm merging this for now so we can test this and #43 with in-toto-golang via the commits. We can cut a release later and decide if we want to add the Verify interface back. |