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

circuits: zk-circuits: valid-match-settle: Merge match and settle circuits #264

Merged
merged 3 commits into from
Nov 25, 2023

Conversation

joeykraut
Copy link
Member

Purpose

This PR merges the match and settle circuits into one. This is necessary to enable proof linking across all proofs. This PR also refactors the circuits over the mpc-plonk system.

This circuit now validates the execution of the matching engine as well as the execution of the settlement logic into the two parties' wallets.

Along the way it was necessary to build a multiprover == gadget, this exposes an interface to test equality on only public values -- i.e. those that have been opened. We use this only on statement types (indices) so this is safe.

Testing

  • Unit tests pass

@joeykraut joeykraut changed the title Joey/merge match settle circuits: zk-circuits: valid-match-settle: Merge match and settle circuits Nov 22, 2023
@joeykraut joeykraut force-pushed the joey/merge-match-settle branch from 040d733 to dea2be8 Compare November 22, 2023 21:21
@joeykraut joeykraut marked this pull request as ready for review November 22, 2023 21:21
@joeykraut joeykraut requested a review from akirillo November 22, 2023 21:21
circuit-macros/src/circuit_type.rs Outdated Show resolved Hide resolved
circuits/src/zk_gadgets/comparators.rs Show resolved Hide resolved
@joeykraut joeykraut force-pushed the joey/merge-match-settle branch from dea2be8 to e5e7a3e Compare November 25, 2023 23:11
@joeykraut joeykraut merged commit 036ec97 into joey/circuits-refactor Nov 25, 2023
1 of 3 checks passed
@joeykraut joeykraut deleted the joey/merge-match-settle branch November 25, 2023 23:11
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