Skip to content

[WIP] Halo2 ecc snark verifier rebase 0329: post rebase#5

Open
zhenfeizhang wants to merge 27 commits intodevelopfrom
halo2-ecc-snark-verifier-rebase-0329
Open

[WIP] Halo2 ecc snark verifier rebase 0329: post rebase#5
zhenfeizhang wants to merge 27 commits intodevelopfrom
halo2-ecc-snark-verifier-rebase-0329

Conversation

@zhenfeizhang
Copy link

No description provided.

jonathanpwang and others added 27 commits February 6, 2023 13:53
assignments using our basic gate

* WIP: currently `gates::flex_gate` is updated and passes basic test
check that the indicator witness was equal to 1 when non-zero.
* Previously the constraint ensured that `ind[i] = 0` when `idx != i`
  however `ind[idx]` could be anything!!!
and there is a break point in that overlap
* we need to copy a cell between columns to fix
* In keygen mode, the `CircuitBuilder` will clone the `ThreadBuilder`
  instead of `take`ing it because the same circuit is used for both vk
gen and pk gen. This could lead to more memory usage for pk gen.
compatibility after halo2-base update
* add multi-thread witness assignment support for `variable_base_msm`
  and `fixed_base_msm`
* batch size 100 MSM witness generation went from 500ms -> 100ms
* change other uses of `size_hint` to follow with `assert_eq!` instead
  of `debug_assert_eq!`
`bit_len < 64` and `decompose_biguint` to `64 <= bit_len < 128`
* add more comprehensive tests for above two functions
* compatibility update with `halo2_proofs_axiom`
assigned cells for external equality constraints (e.g., instance cells,
`AssignedCells` from chips not using halo2-lib).

fix: `assign_all` was not assigning constants as desired: it was
assigning a new constant per context. This leads to confusion and
possible undesired consequences down the line.
as input instead of new hashmap, in case we want to constrain equalities
for cells not belonging to this builder
`idx` the value could be 0 or 1 (instead of only 1)
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