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

refactor: simplify hint overloading for api.Commit #919

Merged
merged 4 commits into from Nov 17, 2023

Conversation

gbotrel
Copy link
Collaborator

@gbotrel gbotrel commented Nov 16, 2023

Mostly, some refactor and fix #918 .

  • refactor: remove hintwithname
  • fix: in test engine, commit should not return 0 with tiny field
  • style: remove some dead code

Copy link
Collaborator

@ivokub ivokub left a comment

Choose a reason for hiding this comment

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

Looks good. There is imo one typo, but it should be noop.

in = in[1:]
privateCommittedValues[i] = make([]fr.Element, len(commitmentInfo[i].PrivateCommitted))
hashed := in[:len(commitmentInfo[i].PublicAndCommitmentCommitted)]
committed := in[+len(hashed):]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Excessive +

@gbotrel gbotrel merged commit 2858476 into master Nov 17, 2023
7 checks passed
@ivokub ivokub deleted the refactor/nohintwithname branch November 22, 2023 21:31
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.

bug: TestCommitment fails
2 participants