Sean Bowe
|
5e20b0f2a7
|
Automatically derive PinnedVerificationKey's Debug impl.
|
2021-02-18 07:51:41 -07:00 |
Sean Bowe
|
7fcd302d2d
|
cargo fmt
|
2021-02-17 15:40:41 -07:00 |
Sean Bowe
|
2b1c319ba0
|
Use pretty-printing in test of verification key pinning.
|
2021-02-17 15:38:43 -07:00 |
Sean Bowe
|
2fe4e0d900
|
Change personalization of BLAKE2b used in hash_into.
|
2021-02-17 15:20:19 -07:00 |
Sean Bowe
|
87536cea10
|
Use newtypes to simplify Debug implementations for pinning verification keys.
|
2021-02-17 15:20:19 -07:00 |
Sean Bowe
|
2076701fc3
|
cargo fmt
|
2021-02-17 15:19:34 -07:00 |
Sean Bowe
|
34a5bfd4b1
|
Remove unused TryInto import.
|
2021-02-17 15:19:34 -07:00 |
ebfull
|
bc9d05e67b
|
Apply suggestions from code review
Co-authored-by: str4d <jack@electriccoin.co>
|
2021-02-17 15:19:34 -07:00 |
Sean Bowe
|
dfa7d96fa9
|
Refactor verification key hashing logic to use Display impls.
|
2021-02-17 15:19:34 -07:00 |
therealyingtong
|
f35e190455
|
Hash in field modulus, curve parameters
|
2021-02-17 15:19:34 -07:00 |
therealyingtong
|
52c028b4da
|
Disambiguate naming of hash() -> hash_into()
|
2021-02-17 15:19:34 -07:00 |
therealyingtong
|
b204ff74a8
|
Do not return hash results from component hash() methods
|
2021-02-17 15:19:34 -07:00 |
therealyingtong
|
4aa4b4463a
|
Hash domain and cs into transcript
|
2021-02-17 15:19:34 -07:00 |
therealyingtong
|
437782e902
|
Hash fixed_commitments and permutations into transcript
|
2021-02-17 15:19:33 -07:00 |
therealyingtong
|
a19dc68dee
|
Use Column<Any> in Permutation::Argument
|
2021-02-17 21:32:17 +08:00 |
Daira Hopwood
|
760d69bd2c
|
Rename "auxiliary column" to "instance column" in the book and in code. fixes #181
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
|
2021-02-14 21:09:49 +00:00 |
Jack Grigg
|
82da677add
|
Add name field to ConstraintSystem::create_gate
The name has type `&'static str`, as gates apply to every row and thus
do not require any runtime information to name.
|
2021-02-01 18:38:13 +00:00 |
Jack Grigg
|
4c3adf59d5
|
Add annotations to Region::{assign_advice, assign_fixed}
This enables circuits to annotate individual cells with variable names
or similar protocol-specific metadata.
|
2021-02-01 18:33:25 +00:00 |
therealyingtong
|
48bfea9782
|
Replace DummyHash with BLAKE2b
|
2021-02-02 00:53:53 +08:00 |
therealyingtong
|
de86391f0e
|
Update test to pass multiple ConcreteCircuits
|
2021-01-31 11:48:32 +08:00 |
therealyingtong
|
e0f9fe1dcf
|
Clippy fixes + address review comments
Co-authored-by: Jack Grigg <jack@electriccoin.co>
|
2021-01-24 08:07:30 +08:00 |
therealyingtong
|
58479fbcc3
|
Refactor keygen to generate pk from vk.
|
2021-01-24 08:07:30 +08:00 |
Sean Bowe
|
ba591c3b39
|
Add serialization support for PLONK verifying keys.
|
2021-01-24 08:05:58 +08:00 |
Kris Nuttycombe
|
74b2aa715f
|
Require Rotation instead of i32 for relative rows in circuits.
Co-authored-by: str4d <thestr4d@gmail.com>
|
2021-01-14 11:57:32 -07:00 |
ebfull
|
ccca639591
|
Merge pull request #111 from zcash/transcript-api-2
New Transcript API (and modified commitment scheme)
|
2021-01-13 16:50:47 -07:00 |
Jack Grigg
|
8590211585
|
Remove unnecessary parts from MockProver per review comments
|
2021-01-06 21:52:56 +00:00 |
therealyingtong
|
fb939f17a9
|
Add permutation check to MockProver
|
2021-01-06 21:52:56 +00:00 |
Jack Grigg
|
6eebf3994b
|
Add MockProver for developing circuits
|
2021-01-06 21:52:56 +00:00 |
Sean Bowe
|
c5e0364962
|
Remove the Read/Write type parameters from Transcript{Read,Write}.
|
2021-01-06 10:45:11 -07:00 |
Sean Bowe
|
dff5a3a692
|
Generate the URS using a homebrew mixture of blake2b and try-and-increment.
|
2021-01-06 10:45:11 -07:00 |
Sean Bowe
|
a2999accb5
|
Rename DummyHash{Reader,Writer} to DummyHash{Read,Write}.
|
2021-01-06 10:45:11 -07:00 |
Sean Bowe
|
06552eec44
|
Update the PLONK implementation to adapt to the new transcript API.
|
2021-01-06 10:45:11 -07:00 |
Jack Grigg
|
90c50fdd11
|
Refactor permutation proofs to reflect the separate permutations
|
2020-12-22 23:51:32 +00:00 |
ebfull
|
7c0e56a44e
|
Merge pull request #84 from zcash/pasta-curves
Replace Tweedle curves with Pasta curves
|
2020-12-13 08:51:52 -07:00 |
therealyingtong
|
8360b94f89
|
Extract plonk::vanishing::{Argument, Proof} from prover and verifier
Co-authored-by: Jack Grigg <jack@electriccoin.co>
|
2020-12-08 00:57:14 +08:00 |
ying tong
|
30c13d5a6a
|
Further cleanups
Co-authored-by: ebfull <ewillbefull@gmail.com>
|
2020-12-05 13:14:50 +08:00 |
Sean Bowe
|
6c0e6f7348
|
cargo fmt
|
2020-12-03 13:59:17 -07:00 |
Sean Bowe
|
95e41fcfcf
|
Rename curves to Pallas/Vesta (Pasta).
|
2020-12-03 13:47:47 -07:00 |
therealyingtong
|
0a85e93714
|
Add lookup to circuit and test
|
2020-12-03 10:50:20 +08:00 |
therealyingtong
|
0c81e9adab
|
Use lookup mod in plonk::prover and plonk::verifier
|
2020-12-03 10:50:20 +08:00 |
therealyingtong
|
46eed7be93
|
Add commit_permuted() in lookup::prover
|
2020-12-03 10:50:20 +08:00 |
therealyingtong
|
02344eb711
|
Add lookup mod and structs
|
2020-12-03 10:50:20 +08:00 |
therealyingtong
|
2ba44cff9f
|
Add theta challenge
|
2020-12-03 10:50:20 +08:00 |
therealyingtong
|
5d891e029d
|
Add fixed_values to ProvingKey
|
2020-12-03 10:50:20 +08:00 |
Jack Grigg
|
4d4c79be58
|
Move Challenge and ChallengeScalar into the transcript module
|
2020-12-01 22:40:54 +00:00 |
Jack Grigg
|
a63e6e25d8
|
Restrict visibility of PLONK challenges to plonk module
|
2020-12-01 21:14:14 +00:00 |
Jack Grigg
|
66240800a3
|
Move permutation keygen into plonk::permutation::keygen
|
2020-12-01 21:10:31 +00:00 |
Jack Grigg
|
f63f3ff2af
|
Introduce typed challenge scalars
This also centralises the challenge generation logic in Challenge::get,
ensuring it is consistent across the codebase.
|
2020-12-01 21:09:03 +00:00 |
Jack Grigg
|
4a3b830165
|
Extract permutation argument into a submodule
|
2020-12-01 21:03:31 +00:00 |
Jack Grigg
|
cdbc41148a
|
Migrate to ff traits
The `Field` trait in this crate is now `FieldExt: ff::PrimeField`.
|
2020-12-01 20:55:03 +00:00 |