-
Notifications
You must be signed in to change notification settings - Fork 73
[feat] Query binary: predicate #85
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
Conversation
jonathanpwang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic looks good, but needs to split out into keygen, prove, verify functions
|
@jonathanpwang ready for review: addressed comments and added prover trace data inputs (failing test is in vm folder) |
jonathanpwang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting some small changes
|
@jonathanpwang addressed comments |
* Predicate binary branched off main * Merge in main changes * Move common data to folder * Split out keygen, prove, and verify * Use cached traces * Remove -v, -t, and -d flags from common * Require input trace
* Predicate binary branched off main * Merge in main changes * Move common data to folder * Split out keygen, prove, and verify * Use cached traces * Remove -v, -t, and -d flags from common * Require input trace
**Finding Link:** https://cantina.xyz/code/c486d600-bed0-4fc6-aed1-de759fd29fa2/findings/11 ## Description of Fix The LogUp linear equalities on trace heights together with a new condition that we require VM instruction executor chips to satisfy ensures that the timestamp does not overflow the field. We then range check the final timestamp in the Connector Chip. We state the new condition in the circuit spec (circuit.md) together with an inspection of all existing chips to justify that they satisfy the condition. --------- Co-authored-by: Jonathan Wang <[email protected]>
**Finding Link:** https://cantina.xyz/code/c486d600-bed0-4fc6-aed1-de759fd29fa2/findings/11 ## Description of Fix The LogUp linear equalities on trace heights together with a new condition that we require VM instruction executor chips to satisfy ensures that the timestamp does not overflow the field. We then range check the final timestamp in the Connector Chip. We state the new condition in the circuit spec (circuit.md) together with an inspection of all existing chips to justify that they satisfy the condition. --------- Co-authored-by: Jonathan Wang <[email protected]>
bin/predicate/README.mdfor instructions.Full test
Run from the root of the repository.
# config.toml [page] index_bytes = 32 data_bytes = 32 bits_per_fe = 16 height = 256Benchmark