Skip to content

support for external circuit construction #5199

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

Draft
wants to merge 13 commits into
base: protocol/lqt_branch-backup-2025-05-21
Choose a base branch
from

Conversation

TalDerei
Copy link
Collaborator

@TalDerei TalDerei commented May 18, 2025

Describe your changes

generating the public and private circuit inputs is currently tightly coupled with action construction, and that needs to be disaggregated. The motivation is twofold: (1) avoid generating the circuit inputs twice (once for delegated proving and once for local proof generation), and (2) because we'll be making HTTPs requests to Taceo's MPC network from TS, which requires the public inputs as part of the request payload. We define ActionCircuit enum to encapsulate that.

additionally, implements helper methods that (1) read the circuit inputs and perform constraint synthesis only (decoupling it from proof generation), and (2) serialize the resulting witnesses and matrices into an amenable form.

Issue ticket number and link

pairs with #5209

Checklist before requesting a review

  • I have added guiding text to explain how a reviewer should test these changes.

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

@TalDerei TalDerei self-assigned this May 18, 2025
@TalDerei TalDerei marked this pull request as draft May 18, 2025 06:57
@TalDerei TalDerei marked this pull request as ready for review May 20, 2025 07:24
@TalDerei TalDerei marked this pull request as draft May 20, 2025 07:24
@conorsch conorsch force-pushed the protocol/lqt_branch branch from 19d33d2 to 2e59879 Compare May 21, 2025 23:41
@TalDerei TalDerei changed the base branch from protocol/lqt_branch to protocol/lqt_branch-backup-2025-05-21 May 30, 2025 22:43
@TalDerei TalDerei mentioned this pull request Jun 4, 2025
2 tasks
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.

1 participant