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

SnarkyJS proof recursion #11268

Merged
merged 27 commits into from
Jun 17, 2022
Merged

SnarkyJS proof recursion #11268

merged 27 commits into from
Jun 17, 2022

Conversation

mitschabaude
Copy link
Member

@mitschabaude mitschabaude commented Jun 13, 2022

  • Companion of Recursion Pt 1 o1-labs/o1js#245
  • Adapts the Pickles interface of snarkyjs to support proof merging
  • this also has the changes from Update snarkyjs & tweak build #11251, which wasn't reviewed so far. Those changes were minor, so we might just review them here and discard that other PR
  • After a day-long debugging marathon, I made a change that overrides how jsoo handles uncaught exceptions: 650ca01 This is related insofar as it would've saved many hours of work on this PR if it were here before

@mitschabaude mitschabaude added the ci-build-me Add this label to trigger a circle+buildkite build for this branch label Jun 13, 2022
@mitschabaude mitschabaude self-assigned this Jun 13, 2022
@mitschabaude mitschabaude marked this pull request as ready for review June 16, 2022 14:22
@mitschabaude mitschabaude requested review from a team, imeckler and mrmr1993 as code owners June 16, 2022 14:22
Copy link
Member

@mrmr1993 mrmr1993 left a comment

Choose a reason for hiding this comment

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

I don't like the changes to the proving API, and would like to see those names changed, but the code looks like it will work.

@@ -1590,61 +1564,43 @@ let () =

(* helpers for pickles_compile *)

type 'a zkapp_statement = { transaction : 'a; at_party : 'a }
type 'a zkapp_statement = 'a array
Copy link
Member

Choose a reason for hiding this comment

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

Nit: It doesn't seem correct (and confused me at first) that this is still called zkapp_statement. Perhaps rename it to public_input / raw_statement / etc.?


let zkapp_statement_to_fields { transaction; at_party } =
[| transaction; at_party |]
type zkapp_statement_js = field_class Js.t Js.js_array Js.t
Copy link
Member

Choose a reason for hiding this comment

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

Likewise here.

@mitschabaude mitschabaude merged commit 831a470 into develop Jun 17, 2022
@mitschabaude mitschabaude deleted the feature/snarkyjs-recursion branch June 17, 2022 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants