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

Add configure method in lexicographic_ordering #51

Merged

Conversation

phamnhatminh1292001
Copy link
Contributor

This PR adds the configure method for the struct Config, which define the gates and constraints for proving the correctness of the sorted memory trace array.

phamnhatminh1292001 and others added 30 commits December 27, 2023 17:59
This PR adds the configure method for the struct Config, which define the gates and constraints for proving the correctness of the sorted memory trace array.
This PR fixes the errors in lexicographic_ordering.rs
This PR adds the second constraint in the configure function, i.e, requiring all the pairwise limb differences before the first_different_limb is zero.
This PR adds the helper functions in gadget.rs for supporting the constraints in lexicographic ordering
This PR fixes the constraints in the configure method of struct LexicographicChip
This PR continues implementing the gates for the lexcographic chip
HappyFalcon22 and others added 21 commits February 27, 2024 13:56
This PR add helper functions for assigning the witnesses for the synthesize method in struct LexicographicCircuit.
This PR restructure the LexicographicCircuit struct and add a ProvableTraceRecord which allow all elements to have Field type.
This PR add the gate for constraining the first time address it accessed, the instruction must be equal to 1, and also add testcases for debugging.
@HappyFalcon22 HappyFalcon22 marked this pull request as ready for review March 5, 2024 07:59
}

struct SortedTraceRecord<F: Field + PrimeField> {
address: [F; 32], //64 bits
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems like the comments are wrong

@HappyFalcon22 HappyFalcon22 merged commit 0e14cab into main Mar 5, 2024
5 checks passed
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