Commit Graph

37 Commits

Author SHA1 Message Date
Alexey
4ee36f5245 docker files 2020-04-30 09:54:02 +03:00
Kobi Gurkan
19037214ec
NCC-CSWZ001-002: adds num exp as input to beacon_constrained and adds input validation 2020-04-29 20:50:09 +03:00
poma
978c3c183b
update cargo lock, fix merge 2020-04-28 11:23:57 +03:00
poma
c3dd7fb2ab
update ceremony size 2020-04-28 11:15:03 +03:00
Kobi Gurkan
d0accedf87
comments about secret data safety 2020-04-28 11:08:13 +03:00
Kobi Gurkan
d79ba70c89
adds check_ratio tests and modifies tests to accomodate it 2020-04-28 11:08:10 +03:00
Kobi Gurkan
72a2111e03
moves verify.rs to examples and adds comments about safety 2020-04-28 11:08:05 +03:00
Kobi Gurkan
9098e203ea
fixes tests and updates cargo lock 2020-04-28 11:07:54 +03:00
Alexey
b09a1b2c6c
update dependencies for powersoftau WIP 2020-04-28 11:02:41 +03:00
Alexey
0226a2a267
add beacon_hash as arg 2020-04-28 11:01:31 +03:00
Kobi Gurkan
89e71c5d18
adds missing return 2020-04-13 23:24:06 +03:00
Alexey
6c19e9f294 fix hex 2020-04-13 19:25:55 +03:00
Alexey
d3cc6d3a5b add beacon_hash as arg 2020-04-13 14:13:10 +03:00
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