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

Nova parameters & decider parameters and proofs serialization #151

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

arnaucube
Copy link
Collaborator

@arnaucube arnaucube commented Aug 23, 2024

Adds serialization for

  • Nova's ProverParams & VerifierParams
  • Nova's DeciderEth ProverParams & VerifierParams & Proof
    Add also tests for it, which serve as examples of usage.

The idea is that with this PR, the full flow with Nova can be done with Prover's getting the serialized trusted setup parameters, and the Verifier getting the serialized proofs, inputs, and parameters, like they were from different instances/machines. An example of serializing and deserializing & verifying the proof (from the deserialized data) can be found at folding/nova/decider_eth.rs#L421 .

resolves #153

@arnaucube arnaucube marked this pull request as draft August 23, 2024 12:20
@czhang2718
Copy link

czhang2718 commented Aug 23, 2024

I needed to modify the import of your ark-circom for let nova_params = N::preprocess(&mut rng, &nova_preprocess_params).unwrap(); to run successfully.

I added rev = "18ca7f2".

@arnaucube arnaucube marked this pull request as ready for review September 5, 2024 13:04
@arnaucube arnaucube changed the title Nova decider serialization Nova parameters & decider parameters and proofs serialization Sep 5, 2024
@arnaucube arnaucube added this to the Stabilize lib milestone milestone Sep 5, 2024
@arnaucube
Copy link
Collaborator Author

This PR is now ready for review.

Copy link
Member

@CPerezz CPerezz left a comment

Choose a reason for hiding this comment

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

Some nits. The rest looks good.

folding-schemes/src/folding/nova/decider_eth.rs Outdated Show resolved Hide resolved
solidity-verifiers/src/verifiers/nova_cyclefold.rs Outdated Show resolved Hide resolved
Copy link
Member

@CPerezz CPerezz left a comment

Choose a reason for hiding this comment

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

LGTM!

@arnaucube arnaucube added this pull request to the merge queue Sep 10, 2024
Merged via the queue into main with commit 1f7bf04 Sep 10, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

serializers & deserializers for Nova to allow the full flow across different instances/devices
3 participants