Skip to content

[feat] update gen_dummy_snark to help with keygen#48

Merged
jonathanpwang merged 11 commits into
release-0.1.7-rcfrom
feat/dummy-snark
Dec 13, 2023
Merged

[feat] update gen_dummy_snark to help with keygen#48
jonathanpwang merged 11 commits into
release-0.1.7-rcfrom
feat/dummy-snark

Conversation

@jonathanpwang

@jonathanpwang jonathanpwang commented Dec 6, 2023

Copy link
Copy Markdown

No circuit logic was changed.

  • gen_dummy_snark needs to account for ConcreteCircuit::Params with the new feature "circuit-params" in halo2.
  • Add gen_dummy_snark_from_vk that gives a dummy snark with correct "shape" from vkey without knowledge of circuit type.
  • Add gen_dummy_snark_from_protocol that does same thing as above from PlonkProtocol
  • Add trait and helper tool for generating AggregationCircuit, for the purposes of keygen, from just verifying keys of dependencies.

The idea is this should be used to implement KeygenCircuitIntent from axiom-crypto/halo2-lib#227 but I don't do it here since the exact Pinning type may vary.

@jonathanpwang jonathanpwang changed the title [feat] update gen_dummy_snark for circuit-params [feat] update gen_dummy_snark to help with keygen Dec 11, 2023
@jonathanpwang jonathanpwang merged commit 707b1ad into release-0.1.7-rc Dec 13, 2023
@jonathanpwang jonathanpwang deleted the feat/dummy-snark branch December 13, 2023 06:23
@jonathanpwang jonathanpwang mentioned this pull request Dec 18, 2023
2 tasks
jonathanpwang added a commit that referenced this pull request Jan 18, 2024
- #37

Note on commit history:
#37 was merged first
into this branch at
c7d7a8f,
then some changes were made to `release-0.1.6-rc0`, so I rebased
`release-0.1.6-rc0` onto this branch and force pushed.

Utilities to generate dummy snarks to help with proving key generation
of aggregation circuits:
* #48
* #49

Merge after:
- [x] v0.1.6 merged to main
- [x] halo2-lib v0.4.1 merged to main
jonathanpwang pushed a commit that referenced this pull request Apr 26, 2024
jonathanpwang added a commit that referenced this pull request Apr 27, 2024
* chore: keep old behavior of `EccInstructions::sum_with_const`

After axiom-crypto/halo2-lib#244 the
`EccChip::sum` was renamed `EccChip::sum_unsafe`. We update the naming
to still use the `sum_unsafe` function so that snark verifier circuits
do not change.

* chore: fix clap version to prevent rust version issues

* ci: install `svm-rs` with its `Cargo.lock` (#48)

* chore: use solc-select instead of svm to avoid rust version issues

---------

Co-authored-by: Han <tinghan0110@gmail.com>
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