186 Commits

Author SHA1 Message Date
Kevin Jue
15b7dcbcdb
optimized goldilocks (#22)
* cleaned up qe api

* modified goldilocks poseidon to use optimized goldilocks operations

* better comment

* added goldilocks test cases

* some cleanup and comments

* changed poseidon constaints to frontend.Variable

* fixed double cast

* fixed bug in challenger
2023-06-08 14:22:42 -07:00
Kevin Jue
ecfc4a7b2b added serialization support for benchmark.go 2023-06-07 11:33:18 -07:00
Kevin Jue
b3a3aa851b
cleaned up qe api (#21) 2023-06-06 17:56:10 -07:00
Kevin Jue
a516925ad8
Poseidon BN128 (#20)
* initial commit of poseidon bn128

* got challenger working

* deserialize is working

* cleaned up deserialization function a bit

* fixed challenger

* add in the hack to the challenges

* fixed some bugs in poseidon_bn128

* fri verification is working

* some changes for benchmarking

* added decode_block plonky2 data

* initial commit for poseidon_mds_gate

* updated gate test cases

* working poseidon mds gate

* full verifier test case working
2023-06-06 17:36:51 -07:00
Kevin Jue
302b5f5bf1
Upgrade to gnark 0.8 (#18)
* make proof with PIS public input

* upgraded to 0.8 gnark

* reduced pow witness

* fixed bug

* fixed test

* fixed bug

* adding profiling

* changed everything to be pointers

* convert remaining poseidon constants

* added the recursive_very_small

* added more outputs for benchmark
2023-05-25 07:39:06 -07:00
Kevin Jue
cf84b032e2
Rearranged files (#17)
* removed unused file

* change field import

* change import of field package

* changed field import

* moved hash to poseidon and some changes to the field package

* changed file structure
2023-05-19 19:49:14 -07:00
Kevin Jue
a415c95f6f
Refactor gate deserialization (#16)
* helper functions for coset_interpolation_gate

* coset interpolation gate working

* hard coded the coset gate (for now)

* refactored gate serialization
2023-05-18 15:30:32 -07:00
Kevin Jue
5bb7cc6411
Coset Interpolation Gate (#15)
* helper functions for coset_interpolation_gate

* coset interpolation gate working

* hard coded the coset gate (for now)
2023-05-18 13:06:30 -07:00
Kevin Jue
67aa8b9d77
exponentiation gate (#14) 2023-05-17 18:28:34 -07:00
Kevin Jue
3f6e2ade98
reducing gate (#13) 2023-05-17 18:09:30 -07:00
Kevin Jue
2823cfbbcb
reducing extension gate (#12) 2023-05-17 17:40:43 -07:00
Kevin Jue
c98d65b48a
multiplication extension gate (#11) 2023-05-17 17:05:43 -07:00
Kevin Jue
ea96e7a176
Arithmetic Extension Gate (#10)
* initial commit for arithmetic extension gate

* fixed bug

* added regex for arithmeticExtensionGate
2023-05-17 16:52:42 -07:00
Kevin Jue
219a2ea61b
Consolidate gate test cases (#9)
* consolidated gate tests

* added recursive step circuit info

* added all the test cases for the recursive step gates
2023-05-16 21:35:02 -07:00
Kevin Jue
ccb828bdb1
Random Access Gate (#8)
* first (non working) version of random access gate

* fixed a bug

* got random access gate workgin

* added parsing logic for the random access gate
2023-05-16 17:11:01 -07:00
Kevin Jue
a0d5ad37de
Base sum gate (#7)
* initial version of base_sum_gate

* add recursive circuit benchmark files

* added step circuit data and contant gate test

* moved step testing data into gate_testing_utils

* added test case for basesum gate

* added test for arithmetic_gate
2023-05-16 11:13:42 -07:00
Kevin Jue
11f5ee28c6
Circuit modifications for recent Plonky2 changes (#5)
* pretty print fibonacci data files

* added in new dummy proof serialized data

* updated powresponse calculation in the challenger chip

* changes to reflect these plonky2 changes:  40aecc8e95

* modified benchmark to accept circuit name
2023-05-11 15:31:32 -07:00
Kevin Jue
01f26f5158
Merge pull request #4 from succinctlabs/npward-plonky2-gates
remove unused JSON file
2023-05-11 14:18:13 -07:00
Nicholas Ward
70e24b1289 remove unused JSON file 2023-05-11 09:36:09 -07:00
Kevin Jue
2fbbcec029
Merge pull request #2 from succinctlabs/npward-plonky2-gates
Plonky2 Gates
2023-05-10 09:55:21 -07:00
Nicholas Ward
2d7f5ecf50 generate proof challenges instead of receiving through JSON 2023-05-01 10:26:45 -07:00
Nicholas Ward
2acec50b96 fix 2023-04-27 12:05:07 -07:00
Nicholas Ward
d6801149f2 deserialize ProofChallenges (now works with plonky2 randomizing PI wires) 2023-04-26 16:05:23 -07:00
Nicholas Ward
9a91db901d don't need challenges serialized 2023-04-12 09:25:51 -07:00
Nicholas Ward
6bfca5badb i - s, not s - i 2023-04-12 09:16:24 -07:00
Nicholas Ward
f20852831e fixes, cleanup, and deserialize ProofChallenges 2023-04-12 09:13:38 -07:00
Nicholas Ward
219e6357f3 fix 2023-04-06 15:12:59 -07:00
Nicholas Ward
85283a0662 fix 2023-04-06 14:40:39 -07:00
Nicholas Ward
b8a7d44fa9 deserialize selector info 2023-04-06 14:19:18 -07:00
Nicholas Ward
4be4b48391 fix gate ID parsing, and verbose error 2023-04-06 14:14:11 -07:00
Nicholas Ward
9a51b67aca gate deserialization, ArithmeticGate, ConstantGate 2023-04-06 13:39:23 -07:00
Nicholas Ward
f96647afd6 moving QuadraticExtension to field 2023-04-06 12:00:35 -07:00
Nicholas Ward
ad8e851fc6 fixes 2023-04-06 11:34:11 -07:00
Nicholas Ward
f1dc02d30f Poseidon extension function versions, and finished PoseidonGate 2023-04-06 11:15:07 -07:00
Nicholas Ward
e1ab30f6a0 oops included gate files 2023-04-05 18:21:01 -07:00
Nicholas Ward
64456ee082 initial work on PoseidonGate 2023-04-05 18:20:49 -07:00
Nicholas Ward
c0168a9769 updates: included evaluateGateConstraints 2023-04-05 14:26:08 -07:00
Nicholas Ward
58914e8f66 uint64 2023-04-04 13:47:29 -07:00
Nicholas Ward
4914844edb finished evaluateGateConstraints 2023-04-04 13:26:30 -07:00
Nicholas Ward
098cb42410 no more gate EvalFiltered 2023-04-04 13:21:12 -07:00
Nicholas Ward
7091e1e1b2 initial work: gate interface and PublicInput 2023-04-04 13:15:31 -07:00
Kevin Jue
57b7937ae8 added comment for where the custom gate constraints logic should be implemented 2023-03-31 10:35:42 -07:00
John Guibas
486fafbce6
Update README.md 2023-03-28 13:07:39 -07:00
John Guibas
a6e3319c5a new benchmarks 2023-03-28 12:01:57 -07:00
John Guibas
cf16f0f595 update readme and MIT 2023-03-28 11:12:07 -07:00
John Guibas
b053926793 Add benchmark script 2023-03-28 10:59:47 -07:00
John Guibas
6e9f1a7c50 Cleanup repo for release 2023-03-28 10:59:36 -07:00
Allison Qi
b19cd390f1 add a test 2023-01-24 16:52:44 -08:00
Kevin Jue
8fe0c7f6b6 added plonky2_verifier_benchmark 2022-11-22 17:57:26 -08:00
Kevin Jue
4498f175f1 added verifier_test 2022-11-22 16:50:43 -08:00