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: mpc-ciruits: settle: Add settlement ciruit #268

Merged
merged 1 commit into from
Nov 25, 2023

Conversation

joeykraut
Copy link
Member

Purpose

This PR adds the settle circuit to the mpc-circuits module. This circuit settles a shared match object into two wallets after the match circuit runs. This completes the process of constructing a shared witness and statement for VALID MATCH SETTLE.

Note that the settlement indices here are public to provide efficiency. These indices are already made public in the statement type of VALID COMMITMENTS so they will simply be pulled from that proof's statement at match time.

Testing

  • Unit and integration tests pass

@joeykraut joeykraut marked this pull request as ready for review November 24, 2023 06:02
@joeykraut joeykraut requested a review from akirillo November 24, 2023 06:02
circuits/src/mpc_circuits/settle.rs Outdated Show resolved Hide resolved
@joeykraut joeykraut force-pushed the joey/circuits-integration-tests branch from 2cdbee6 to 96c8d54 Compare November 25, 2023 23:21
Base automatically changed from joey/circuits-integration-tests to joey/circuits-refactor November 25, 2023 23:21
@joeykraut joeykraut merged commit ff30fc2 into joey/circuits-refactor Nov 25, 2023
1 of 3 checks passed
@joeykraut joeykraut deleted the joey/settle-circuit branch November 25, 2023 23:30
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