Uh oh!
There was an error while loading. Please reload this page.
Lookups can take array values - #3
Merged
Merged
Conversation
kmerrill18
marked this pull request as draft
February 6, 2026 14:21
kmerrill18
commented
Feb 6, 2026
CollaboratorAuthor
Constraint count comes out to (k - 2) + Ak + N:
So in total: (k - 2) + A(k - 1) + A + N = (k - 2) + Ak + N. The (k - 2) term is perhaps unnecessary. Theoretically, the challenge is public, so the prover does not need to prove that it computed those powers correctly. However, circ puts this on the prover side instead of the verifier side. In practice, for our applications, N >> (k - 2), so this term should not matter, and I think it is fine to leave as-is. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create a version of value_in_array that works with arrays so we can do lookups of tuples. This implementation "hashes" (computes a random linear combination based on a verifier challenge) each array element into one field element, and then it hooks into the regular Habock lookup infrastructure.