therealyingtong
|
0f2dfc5508
|
Use UtilitiesInstructions::Var instead of internal associated type.
Co-authored-by: Jack Grigg <jack@electriccoin.co>
|
2021-06-08 00:20:09 +08:00 |
therealyingtong
|
40599144bf
|
utilities::plonk: Remove assumption that fixed columns default to 1
|
2021-06-05 15:33:12 +08:00 |
therealyingtong
|
6603e996ed
|
utilities::cond_swap: Directly witness swap bit
|
2021-06-05 15:32:43 +08:00 |
therealyingtong
|
f31b9feba0
|
utilities::enable_flag: Directly witness flag
|
2021-06-05 09:42:23 +08:00 |
therealyingtong
|
fea88c814c
|
Add enable flag chip
|
2021-06-04 18:08:59 +08:00 |
therealyingtong
|
4b0ea0be15
|
Add conditional swap chip
|
2021-06-04 18:08:59 +08:00 |
therealyingtong
|
4f87815262
|
Add standard PLONK chip
|
2021-06-04 18:08:59 +08:00 |
therealyingtong
|
4d8ae89aa9
|
Add Utilities chip
|
2021-06-04 18:08:59 +08:00 |
Jack Grigg
|
91db490e20
|
test: Add Poseidon test vectors
|
2021-06-01 18:36:11 +01:00 |
Jack Grigg
|
f5a4cc3550
|
poseidon::Hash gadget
|
2021-06-01 18:36:11 +01:00 |
Jack Grigg
|
38dd7b791d
|
PoseidonDuplexInstructions
|
2021-06-01 18:36:11 +01:00 |
Jack Grigg
|
a69d76113f
|
test: Rename MyCircuit to PermuteCircuit
|
2021-06-01 18:36:11 +01:00 |
Jack Grigg
|
d1fe466812
|
Replace PoseidonInstructions::State with PoseidonInstructions::Word
|
2021-06-01 18:36:11 +01:00 |
Jack Grigg
|
01eb431f1f
|
Remove "final" round logic from poseidon::Pow5T3Chip
This was a bug in the Poseidon reference implementation, fixed in v1.1.
|
2021-06-01 18:36:11 +01:00 |
Jack Grigg
|
40a19b429c
|
Test that poseidon::Pow5T3Chip chip correctly implements Poseidon
|
2021-06-01 18:36:11 +01:00 |
Jack Grigg
|
f1b8abfccb
|
Arity-3 Poseidon chip
|
2021-06-01 18:36:11 +01:00 |
Jack Grigg
|
363e6944ec
|
Poseidon instructions
|
2021-06-01 17:54:37 +01:00 |
therealyingtong
|
ff504c1a3f
|
Address review comments.
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
|
2021-05-18 17:14:13 +08:00 |
therealyingtong
|
2962115aef
|
Reintroduce point doubling API
|
2021-05-18 16:54:52 +08:00 |
therealyingtong
|
af30f4b141
|
Add Eq to the EccChip trait
|
2021-05-18 16:12:06 +08:00 |
therealyingtong
|
caa3791562
|
Documentation fixes.
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
|
2021-05-18 16:07:40 +08:00 |
therealyingtong
|
edea9bde73
|
Document incomplete point addition error handling
|
2021-05-18 13:28:17 +08:00 |
therealyingtong
|
c8076c2864
|
Add FixedPointsShort associated type
|
2021-05-18 13:28:17 +08:00 |
therealyingtong
|
74c797165f
|
Add range check for short scalar
|
2021-05-18 13:28:16 +08:00 |
therealyingtong
|
db60fd2262
|
Add FixedPointShort associated type
|
2021-05-06 15:55:15 +08:00 |
therealyingtong
|
6a64bc1c37
|
Expose Point.add_incomplete()
|
2021-05-06 12:54:21 +08:00 |
therealyingtong
|
4f2b4d2935
|
Address review comments
Co-authored-by: Jack Grigg <jack@electriccoin.co>
|
2021-05-05 20:23:29 +08:00 |
therealyingtong
|
4bf6202c35
|
Modify ECC gadget to work with chip refactor
|
2021-05-04 12:11:28 +08:00 |
Jack Grigg
|
bbf2dc271e
|
Add ECC gadgets and instructions
Migrated from the halo2 crate; we may re-upstream them later (or move
gadgets into their own crate) once we've stabilised them.
|
2021-02-25 18:11:46 +00:00 |