Commit Graph

24 Commits

Author SHA1 Message Date
Georgios Konstantopoulos
5d82e40bb7
Make setup abstract over the curve being used (#11)
* refactor(bin): make `calculate_hash` a utility function

* feat: make the engine part of the setup parameters

We add an extension trait to Engine to specify the group element sizes
per curve used. We implement that for each curve we want to support.

Added support for BLS12-381

This allows moving the type constraint from the constructors in BatchedAccumulator and KeyPair to the params, improving ergonomics, and prepares multi-curve support in the CLI

* feat(params): do not require harcoding the group sizes

* feat(bin): add CLI params to reduce_powers and prepare_phase2
2020-02-13 11:53:48 +02:00
Georgios Konstantopoulos
614b4b899d
Make ceremony params configurable at runtime (#10)
* feat(parameters): Replace trait with a params struct

We define a CeremonyParams struct which contains a curve and setup-specific parameters
The curve is a CurveParams struct which contains the sizes of the compressed and uncompressed group elements
This will allow us to easily extend the implementations over multiple curves and constraint numbers (currently these are hard coded and cannot be easily chagned)

* feat(keypair): Use the CeremonyParams struct instead of being generic over the PowersOfTauParams trait

* feat(accumulator): Use the CeremonyParams struct instead of being generic over the PowersOfTauParams trait

* feat(batched-accumulator): Use the CeremonyParams struct instead of being generic over the PowersOfTauParams trait

driveby-change: also replace println's with error/info logs

* feat(batched-accumulator): Use the CeremonyParams struct instead of being generic over the PowersOfTauParams trait

driveby-change: also replace println's with error/info logs

* refactor(bn256): delete bn256 module and move tests to better locations

* fix(bin): make all binaries build with the CeremonyParams object

* test(e2e): run the test with circuit power and batch size provided at runtime

* chore: remove unused accumulator.rs and new.rs
2020-02-13 11:04:29 +02:00
Georgios Konstantopoulos
32bbd5f35c
chore: cargo fmt + make clippy happy (#9) 2020-02-12 14:46:33 +02:00
poma
25a243fde4
fix build for reduce_powers 2020-02-03 13:59:19 +08:00
Kobi Gurkan
40e2e31e76
Merge pull request #3 from kobigurk/feat/reduce_powers
Adds a power reducing utility
2020-01-29 12:11:21 +02:00
Kobi Gurkan
4e4c814089 adds empirical batch size to smalltest to test batching 2020-01-29 12:10:33 +02:00
poma
aed734275e
attach smalltest feature directly to REQUIRED_POWER constant 2020-01-24 13:59:12 +08:00
Kobi Gurkan
1ef0e48957 adds small test parameters, generalizes repr_to_big 2020-01-23 16:42:21 +02:00
poma
95379a1a1c
change default power to 28 2020-01-19 00:41:12 +07:00
poma
82592ae2e7
fix typos in comments 2020-01-17 22:18:48 +07:00
poma
7ba88b2e70
fix BatchedAccumulator name typo 2020-01-17 22:18:43 +07:00
poma
8bb81239e1
minor fix 2020-01-17 13:57:33 +07:00
poma
b6945b6029
Minor code style 2020-01-08 19:46:34 +07:00
poma
e8b14ddb00
Accept filenames as command line arguments 2020-01-08 19:46:34 +07:00
poma
a49ebce8f1
Remove bn12_381 and small_bn256 mods 2020-01-08 19:46:34 +07:00
poma
d72f81b180
add generated files to .gitignore 2020-01-08 19:46:33 +07:00
Kobi Gurkan
85d9ede706 adds a power reducing utility 2019-12-31 15:45:19 +02:00
Brechtpd
29b4e1ddee Some misc small fixes + split up work in multiple programs 2019-12-05 18:30:09 +01:00
Kobi Gurkan
9af1e2aca9 fixes writing of beta_g2 2019-09-12 08:57:31 +03:00
Kobi Gurkan
18c190c298 adds prepare_phase2 2019-09-05 16:29:07 +03:00
Kobi Gurkan
c93a47f8ef makes verify_transform verify intersection between chunks 2019-09-04 18:19:46 +03:00
Kobi Gurkan
1388c0a55e removes debug prints 2019-09-04 15:54:48 +03:00
Kobi Gurkan
470dff3d92 adds verify.rs to verify transcript and working phase2 for bn254 2019-09-04 13:15:17 +03:00
Kobi Gurkan
5d6690f9b8 Add 'powersoftau/' from commit '34b4d09b4ccc459d757a77c94b391a1f64f66f76'
git-subtree-dir: powersoftau
git-subtree-mainline: 37bdc022d6ae906eb583746fea8784edc6bd7c6b
git-subtree-split: 34b4d09b4ccc459d757a77c94b391a1f64f66f76
2019-09-02 15:50:38 +03:00