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

Reorganize DSSE library #42

Merged
merged 4 commits into from
May 2, 2023

Conversation

adityasaky
Copy link
Member

  • 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>
@adityasaky
Copy link
Member Author

@pxp928 @mnm678

Copy link

@pxp928 pxp928 left a comment

Choose a reason for hiding this comment

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

LGTM, few nits.

dsse/envelope.go Outdated Show resolved Hide resolved
dsse/sign_test.go Outdated Show resolved Hide resolved
dsse/sign_test.go Outdated Show resolved Hide resolved
dsse/sign_test.go Outdated Show resolved Hide resolved
dsse/sign_test.go Outdated Show resolved Hide resolved

// SignerVerifer provides both the signing and verification interface.
type SignerVerifier interface {
Signer
Copy link

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.

Copy link
Member Author

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?

Copy link
Member Author

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>
@adityasaky adityasaky requested a review from mnm678 May 1, 2023 14:28
@adityasaky
Copy link
Member Author

Signed-off-by: Aditya Sirish <aditya@saky.in>
@adityasaky adityasaky requested a review from pxp928 May 2, 2023 14:32
Copy link

@pxp928 pxp928 left a comment

Choose a reason for hiding this comment

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

LGTM

@adityasaky adityasaky merged commit 83ae237 into secure-systems-lab:main May 2, 2023
@adityasaky adityasaky deleted the code-cleanup branch May 2, 2023 17:28
@adityasaky
Copy link
Member Author

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.

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