halo2/src/circuit/gadget
Jack Grigg 9b41a06363 Migrate to halo2 version with `AssignedCell`
We change `CellValue` into a typedef of `AssignedCell` to simplify the
migration in this commit.

The migration from `CellValue` to `AssignedCell` requires several other
changes:

- `<CellValue as Var>::value()` returned `Option<F>`, whereas
  `AssignedCell::<F, F>::value()` returns `Option<&F>`. This means we
  need to dereference, use `Option::cloned`, or alter functions to take
  `&F` arguments.
- `StateWord` in the Poseidon chip has been changed to a newtype around
  `AssignedCell` (the chip was written before `CellValue` existed).
2021-12-08 01:45:00 +00:00
..
ecc Migrate to halo2 version with `AssignedCell` 2021-12-08 01:45:00 +00:00
poseidon Migrate to halo2 version with `AssignedCell` 2021-12-08 01:45:00 +00:00
sinsemilla Migrate to halo2 version with `AssignedCell` 2021-12-08 01:45:00 +00:00
utilities Migrate to halo2 version with `AssignedCell` 2021-12-08 01:45:00 +00:00
ecc.rs Apply suggestions from code review 2021-09-28 21:09:39 +01:00
poseidon.rs circuit: Remove `Copy` impl from `poseidon::pow5::StateWord` 2021-12-08 01:44:09 +00:00
sinsemilla.rs circuit: Remove `Copy` impl from `CellValue` 2021-12-08 01:43:00 +00:00
utilities.rs Migrate to halo2 version with `AssignedCell` 2021-12-08 01:45:00 +00:00