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

fix(sigmap-EDAP-06): Missing IsOnCurve & IsInSubgroup Checks For Elli… #229

Merged
merged 7 commits into from
Jan 9, 2025

Conversation

epociask
Copy link
Collaborator

@epociask epociask commented Jan 9, 2025

Fixes Issue

Fixes #

Changes proposed

Screenshots (Optional)

Note to reviewers

@epociask epociask marked this pull request as ready for review January 9, 2025 17:54
@epociask epociask requested a review from bxue-l2 January 9, 2025 17:54
Copy link
Collaborator

@samlaf samlaf left a comment

Choose a reason for hiding this comment

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

Change LGTM but I'd prefer to change the variable name.

Even the documentation comment mentions "commitment in the certificate". Why are we using something abstract like expectedCommit? Can we just change to certificateCommitment?

verify/verifier.go Outdated Show resolved Hide resolved
actualCommit, err := v.Commit(blob)
if err != nil {
return err
}

expectedX := &fp.Element{}
expectedX.Unmarshal(expectedCommit.X)
expectedX.Unmarshal(certCommitment.X)
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we change all expected -> certCommitment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator

@samlaf samlaf left a comment

Choose a reason for hiding this comment

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

Approving but would still like to get the last variable name change in. Night ;)

@epociask epociask merged commit ad9c855 into main Jan 9, 2025
9 checks passed
@epociask epociask deleted the epociask--fix-EDAP-06 branch January 9, 2025 21:40
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