Commit Graph

1051 Commits

Author SHA1 Message Date
Jack Grigg 7da5605f51 Remove redundant Error suffix from Error cases 2021-11-10 16:19:36 +00:00
Jack Grigg 209e398cae Store `io::Error` inside `Error::TranscriptError`
We `impl From<io::Error> for Error` to return `Error::TranscriptError`
because the transcript is the only source of `io::Error`.

`Error` no longer implements `PartialEq` because `io::Error` does not.
Tests can check for specific error cases with `assert!(matches!(..))`.
2021-11-10 14:49:35 +00:00
Jack Grigg b091757668 Rename Error::IncompatibleParams to Error::InvalidInstances
This was leftover from when proofs were structured in memory.
2021-11-10 14:49:35 +00:00
Jack Grigg de1a468691 Move Error struct into a submodule
Just to make it easier to work on.
2021-11-10 14:49:35 +00:00
str4d a635b7c25a
Merge pull request #375 from zcash/366-dev-graph-examples
Update `dev-graph` examples
2021-11-11 03:48:41 +13:00
str4d 9dd1bffa76
Merge pull request #395 from zcash/dependabot-actions
CI: Add Dependabot config to keep Actions up-to-date
2021-11-05 07:00:55 +13:00
Jack Grigg 0c1c5be67f CI: Add Dependabot config to keep Actions up-to-date 2021-11-04 16:42:47 +00:00
Jack Grigg 9c226d33b9 dev: Collect values of queried cells for unsatisfied constraints
Co-authored-by: ying tong <yingtong@z.cash>

Closes zcash/halo2#364.
2021-11-04 14:03:47 +00:00
Jack Grigg 26622ce5b0 `impl Ord for plonk::Any` 2021-11-04 14:03:16 +00:00
Daira Hopwood ddd34ff972
Merge pull request #389 from zcash/dev-faster-mockprover
dev: Remove O(n^2) loop in lookup checks.
2021-10-26 14:11:55 +01:00
therealyingtong b94aab76a3 dev: Remove O(n^2) loop in lookup checks.
Co-authored-by: Kris Nuttycombe<kris@nutty.land>
2021-10-22 19:33:30 +02:00
ying tong 6eca11b37a
Merge pull request #386 from zcash/book-patch-2
[book] Update link `upa.md` -> `plonkish.md`
2021-10-14 12:39:25 +02:00
ying tong 3d2c0e429e
[book] Update link `upa.md` -> `plonkish.md`
Closes #367
2021-10-14 12:38:52 +02:00
Jack Grigg 5be597c3bc book: Add example for `halo2::dev::circuit_dot_graph` 2021-10-01 16:01:24 +01:00
str4d 658c2db421
Merge pull request #374 from zcash/trait-usage
Clean up our trait usage
2021-10-02 01:54:55 +13:00
Jack Grigg c9d890377c book: Render example for `CircuitLayout` 2021-10-01 13:39:04 +01:00
Jack Grigg e3e68bc5d7 book: Fix bugs in dev tools page 2021-10-01 13:39:04 +01:00
Jack Grigg 7463a6e931 examples: Reorganise circuit-layout example to use in book 2021-10-01 13:39:04 +01:00
Jack Grigg b46ef35db5 clippy: Allow unused imports
We can remove this once `pasta_curves` has been updated to remove
`CurveAffine::read`.
2021-10-01 13:33:47 +01:00
Jack Grigg 3fba7434d1 Use `ff::PrimeField::root_of_unity` instead of `FieldExt::ROOT_OF_UNITY` 2021-09-30 23:06:32 +01:00
Jack Grigg 9dc2738305 Remove usages of `CurveAffine::{read, write}`
A new `CurveRead` helper trait brings in the `CurveAffine::read` impl.
2021-09-30 23:06:32 +01:00
Jack Grigg 17b8fe1baa Use `ff::Field::pow_vartime` instead of `FieldExt::pow` 2021-09-30 22:54:42 +01:00
Jack Grigg a5a3c8ca63 Use `From<u64>` instead of `FieldExt::from_u64` 2021-09-30 22:53:00 +01:00
Jack Grigg 0e6b0344f5 Use `ff::PrimeField::{from_repr, to_repr}` instead of `FieldExt` 2021-09-30 22:53:00 +01:00
Jack Grigg 9693065a00 Use `ff::BatchInvert` now that we have upstreamed it 2021-09-30 22:35:33 +01:00
str4d 3850b9ccd5
Merge pull request #371 from zcash/release-0.1.0-beta.1
halo2 0.1.0-beta.1
2021-09-28 16:42:51 +13:00
Jack Grigg ca0f04dcb9 Add [BETA] to the crate description
Just so people see it when searching crates.io for halo2.
2021-09-24 17:08:46 +01:00
Jack Grigg 2c2349b576 Change crate license-file property to point at COPYING 2021-09-24 17:03:29 +01:00
Jack Grigg 7ca1933156 halo2 0.1.0-beta.1
This is the beta version of `halo2` used on testnet in zcashd v4.5.0.
2021-09-24 17:00:13 +01:00
str4d a7cd600eb6
Merge pull request #370 from zcash/license-update
Add license exceptions for ECC and ZF projects
2021-09-23 08:38:27 +12:00
Jack Grigg 83f0d6abea Update README 2021-09-22 20:11:13 +01:00
Jack Grigg 69b169057d Update COPYING with latest license text 2021-09-22 20:06:50 +01:00
Jack Grigg 78f0e21563 Require pasta_curves 0.2.1
This is the first version that was relicensed as MIT OR Apache-2.0.
2021-09-22 19:59:04 +01:00
ebfull 6d53a2adf8
Merge pull request #368 from zcash/protocol-formalization
Add formal protocol description and preliminaries
2021-09-20 09:42:12 -06:00
Sean Bowe 424af080ba
Add formal protocol description and preliminaries. 2021-09-20 09:30:02 -06:00
str4d 26047eaf32
Merge pull request #362 from zcash/ff-0.11
ff 0.11, group 0.11, pasta_curves 0.2
2021-09-06 19:45:22 +01:00
Jack Grigg 81622bf847 ff 0.11, group 0.11, pasta_curves 0.2 2021-09-02 23:05:18 +01:00
Daira Hopwood 236a5e37a5
Merge pull request #355 from zcash/dev-gates-queries
dev: Add helper method to print queries per-constraint to a CSV file
2021-08-25 10:55:29 +01:00
Daira Hopwood 26744c103d
Merge pull request #356 from parazyd/book-dev-tools-fix
book: Fix rendering of cost-model output.
2021-08-25 10:52:27 +01:00
parazyd 1b0a22096b
book: Fix rendering of cost-model output.
This should stop html tags appearing inside the <code> tags.
2021-07-31 15:24:50 +02:00
Jack Grigg 3731580790 dev: Add helper method to print queries per-constraint to a CSV file 2021-07-29 01:19:51 +01:00
str4d 27c4187673
Merge pull request #354 from daira/table-refactoring
Add a `Layouter::assign_table` API
2021-07-27 20:52:36 +01:00
str4d 6dcc61898f
Add `used_columns` to `SimpleTableLayouter` `Debug` impl
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2021-07-27 17:55:34 +01:00
str4d eab1884504
Add code comments from review
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
Co-authored-by: ying tong <yingtong@z.cash>
2021-07-27 17:49:52 +01:00
Jack Grigg 49a763cd61 Rename `Table::assign_fixed` to `Table::assign_cell` 2021-07-27 17:48:13 +01:00
Jack Grigg a62c5d13fd test: Update plonk_api pinned verification key
The lookup table column was un-equality-enabled when it became a
TableColumn.
2021-07-27 17:25:16 +01:00
str4d 4fdc52a74a
Merge pull request #353 from zcash/dev-circuit-gates
Developer tooling improvements
2021-07-27 17:20:02 +01:00
Daira Hopwood 58390059d5
Merge pull request #352 from zcash/expression-neg
`Expression::Negated`
2021-07-27 17:18:09 +01:00
Jack Grigg 57877f5f18 Fix clippy lints 2021-07-27 16:04:27 +01:00
Jack Grigg e855ac6adb Add `halo2::plonk::circuit::TableColumn` struct
This type is required by the `ConstraintSystem::lookup` API, and cannot
be converted into a `Column<Fixed>` via the public API, forcing chip
developers to use `Layouter::assign_table` API to load tables. This is
a safety feature, as lookup table rows need to be default-value-filled
by the layouter (or else the table would have an implicit default value
of all-zeroes which could introduce soundness bugs into circuits).
2021-07-27 15:52:42 +01:00