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

Change verification key points in contract to constant #330

Closed
saleel opened this issue Jun 1, 2023 · 5 comments · Fixed by #875
Closed

Change verification key points in contract to constant #330

saleel opened this issue Jun 1, 2023 · 5 comments · Fixed by #875
Assignees
Labels
feature 🚀 This is enhancing something existing or creating something new good first issue Good for newcomers hacktoberfest Encourages contributions to open source during Hacktoberfest.

Comments

@saleel
Copy link
Contributor

saleel commented Jun 1, 2023

The VK_POINTS points variable storing the verification key points in the contract is not a constant.

The value will be stored in storage slots and would require reading every time. If this could be changed to a constant, the value will be part of the bytecode and verification will be cheaper (and also better performance I think).

Since this is an array it cannot be marked as constant directly, so other techniques need to be explored.

@saleel saleel added the feature 🚀 This is enhancing something existing or creating something new label Jun 1, 2023
@saleel saleel self-assigned this Sep 19, 2023
@cedoor cedoor added good first issue Good for newcomers hacktoberfest Encourages contributions to open source during Hacktoberfest. labels Sep 28, 2024
@0xshikhar
Copy link

Hey @cedoor, would love to work on this ? Could you clarify the remaining tasks for this issue? Any additional context would be appreciated. Thanks!

@cedoor
Copy link
Member

cedoor commented Oct 15, 2024

Hi @0xshikhar, this issue is part of #354. Let's sync here: #345 (comment)

@cedoor
Copy link
Member

cedoor commented Oct 15, 2024

@jimmychu0807 please, leave a comment here.

@jimmychu0807
Copy link
Contributor

Hi

@0xshikhar
Copy link

Hi @0xshikhar, this issue is part of #354. Let's sync here: #345 (comment)

Sure, got it

jimmychu0807 added a commit to jimmychu0807/semaphore that referenced this issue Oct 16, 2024
jimmychu0807 added a commit to jimmychu0807/semaphore that referenced this issue Oct 16, 2024
jimmychu0807 added a commit to jimmychu0807/semaphore that referenced this issue Oct 16, 2024
cedoor pushed a commit that referenced this issue Oct 17, 2024
* refactor(scripts): added a script to convert bigint to hex

* refactor(contracts): split SemaphoreVerifier verification key points into a separate library (#330)

* chore(contracts): yarn format & lint

* refactor(contracts): update SemaphoreVerifierKeyPts library to be internal

re #330

* chore(contracts): update spacing

* chore(contracts): updated per peer review and added invariant check for VerifierKeyPts lib

* chore(contracts): update invariant check to revert with custom error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 🚀 This is enhancing something existing or creating something new good first issue Good for newcomers hacktoberfest Encourages contributions to open source during Hacktoberfest.
Projects
Status: ✔️ Done
Development

Successfully merging a pull request may close this issue.

4 participants