This is an automated email from the ASF dual-hosted git repository. kmccusker pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-milagro-MPC.git
commit bbf62d70f99bc08048c7b6c3a8142c9219ee4fae Merge: 75f2c35 1d4de99 Author: Kealan McCusker <[email protected]> AuthorDate: Wed Mar 4 11:21:13 2020 +0000 Merge pull request #26 from apache/develop initial PR to master .dockerignore | 8 +- .gitignore | 19 +- .travis.yml | 56 +- Dockerfile | 24 +- README.md | 8 +- benchmark/bench.h | 2 +- benchmark/bench_d_schnorr.c | 161 ++ benchmark/bench_factoring_zk.c | 14 +- benchmark/bench_mta_zk.c | 217 +++ benchmark/bench_mta_zkwc.c | 226 +++ benchmark/bench_nm_commit.c | 2 +- benchmark/bench_phase5.c | 197 +++ examples/example_d_schnorr.c | 144 ++ examples/example_dump_keys.c | 40 +- examples/example_ecdsa.c | 68 +- examples/example_factoring_zk.c | 17 +- examples/example_full.c | 1653 ++++++++++++++++++++ examples/example_mta_zk.c | 241 +++ examples/example_mta_zk_interactive.c | 247 +++ examples/example_mta_zkwc.c | 257 +++ examples/example_nm_commit.c | 12 +- examples/example_phase5.c | 208 +++ examples/example_r.c | 10 +- examples/example_schnorr_interactive.c | 103 ++ include/amcl/commitments.h | 7 +- include/amcl/factoring_zk.h | 28 +- include/amcl/mpc.h | 116 +- include/amcl/mta.h | 379 ++++- include/amcl/schnorr.h | 69 +- python/CMakeLists.txt | 35 +- python/README.md | 45 +- python/amcl/CMakeLists.txt | 27 + python/amcl/__init__.py | 0 python/amcl/bls.py | 234 +++ python/amcl/commitments.py | 115 ++ python/amcl/core_utils.py | 179 +++ python/amcl/factoring_zk.py | 120 ++ python/amcl/mpc.py | 621 ++++++++ python/amcl/schnorr.py | 218 +++ python/amcl_mpc.py | 850 ---------- python/bench_mpc.py | 105 -- python/benchmark/CMakeLists.txt | 17 + python/benchmark/bench.py | 62 + python/benchmark/bench_mta.py | 76 + python/benchmark/bench_nm_commit.py | 47 + python/benchmark/bench_schnorr.py | 57 + python/benchmark/bench_zk_factoring.py | 49 + python/example_ecdsa.py | 142 -- python/examples/CMakeLists.txt | 17 + python/examples/example_bls.py | 150 ++ python/{ => examples}/example_dump_keys.py | 81 +- python/examples/example_ecdsa.py | 126 ++ python/{ => examples}/example_mta.py | 84 +- python/examples/example_nm_commit.py | 54 + python/{ => examples}/example_r.py | 111 +- python/{ => examples}/example_s.py | 118 +- python/examples/example_schnorr.py | 79 + python/examples/example_zk_factoring.py | 63 + python/test/CMakeLists.txt | 64 + python/test/test_ecdsa.py | 128 ++ python/{ => test}/test_mta.py | 50 +- python/test/test_nm_commit.py | 90 ++ python/test/test_r.py | 93 ++ python/test/test_s.py | 100 ++ python/test/test_schnorr.py | 149 ++ python/test/test_zk_factoring.py | 103 ++ python/test_ecdsa.py | 149 -- python/test_r.py | 87 -- python/test_s.py | 98 -- scripts/build.sh | 2 +- scripts/buildAMCL.sh | 4 +- scripts/test.sh | 2 +- sonar-project.properties | 24 + src/CMakeLists.txt | 7 +- src/commitments.c | 34 +- src/factoring_zk.c | 70 +- src/mpc.c | 378 +++-- src/mta.c | 922 +++++++++-- src/schnorr.c | 209 ++- test/smoke/test_d_schnorr_smoke.c | 113 ++ test/smoke/test_dump_keys_smoke.c | 59 +- test/smoke/test_ecdsa_smoke.c | 76 +- test/smoke/test_factoring_zk_smoke.c | 29 +- test/smoke/test_mta_rp_smoke.c | 2 +- ..._rp_smoke.c => test_mta_zk_interactive_smoke.c} | 56 +- .../{test_mta_rp_smoke.c => test_mta_zk_smoke.c} | 56 +- .../{test_mta_rp_smoke.c => test_mta_zkwc_smoke.c} | 65 +- test/smoke/test_nm_commit_smoke.c | 2 +- test/smoke/test_phase5_smoke.c | 149 ++ test/smoke/test_r_smoke.c | 2 +- ...it_smoke.c => test_schnorr_interactive_smoke.c} | 51 +- test/test.c | 73 +- test/test.h | 29 + test/unit/CMakeLists.txt | 37 +- ...test_nm_commit.c => test_d_schnorr_challenge.c} | 68 +- ...actoring_zk_prove.c => test_d_schnorr_commit.c} | 72 +- .../{test_nm_commit.c => test_d_schnorr_prove.c} | 91 +- test/unit/test_d_schnorr_verify.c | 135 ++ test/unit/test_factoring_zk_prove.c | 19 +- test/unit/test_factoring_zk_verify.c | 6 +- test/unit/test_mta_rp_octets.c | 33 +- test/unit/test_mta_zk_challenge.c | 131 ++ test/unit/test_mta_zk_commit.c | 151 ++ .../{test_mta_rp_octets.c => test_mta_zk_octets.c} | 97 +- test/unit/test_mta_zk_prove.c | 150 ++ test/unit/test_mta_zk_verify.c | 203 +++ test/unit/test_mta_zkwc_challenge.c | 139 ++ test/unit/test_mta_zkwc_commit.c | 158 ++ test/unit/test_mta_zkwc_octets.c | 160 ++ test/unit/test_mta_zkwc_prove.c | 150 ++ test/unit/test_mta_zkwc_verify.c | 198 +++ test/unit/test_nm_commit.c | 10 +- .../{test_nm_commit.c => test_phase5_commit.c} | 88 +- test/unit/test_phase5_prove.c | 200 +++ test/unit/test_phase5_verify.c | 160 ++ test/unit/test_r.c | 6 +- testVectors/commitments/nm_commit.json | 62 + testVectors/mpc/R.json | 2 +- testVectors/mpc/R.txt | 540 +++---- testVectors/mpc/phase5_commit.json | 92 ++ testVectors/mpc/phase5_commit.txt | 80 + testVectors/mpc/phase5_prove.json | 142 ++ testVectors/mpc/phase5_prove.txt | 130 ++ testVectors/mpc/phase5_verify.json | 72 + testVectors/mpc/phase5_verify.txt | 60 + testVectors/mta/mta_challenge.json | 142 ++ testVectors/mta/mta_challenge.txt | 130 ++ testVectors/mta/mta_commit.json | 222 +++ testVectors/mta/mta_commit.txt | 210 +++ testVectors/mta/mta_prove.json | 202 +++ testVectors/mta/mta_prove.txt | 190 +++ testVectors/mta/mta_verify.json | 222 +++ testVectors/mta/mta_verify.txt | 210 +++ testVectors/mta/mtawc_challenge.json | 172 ++ testVectors/mta/mtawc_challenge.txt | 160 ++ testVectors/mta/mtawc_commit.json | 232 +++ testVectors/mta/mtawc_commit.txt | 220 +++ testVectors/mta/mtawc_prove.json | 202 +++ testVectors/mta/mtawc_prove.txt | 190 +++ testVectors/mta/mtawc_verify.json | 242 +++ testVectors/mta/mtawc_verify.txt | 230 +++ testVectors/schnorr/dchallenge.json | 72 + testVectors/schnorr/dchallenge.txt | 60 + testVectors/schnorr/dcommit.json | 72 + testVectors/schnorr/dcommit.txt | 60 + testVectors/schnorr/dprove.json | 102 ++ testVectors/schnorr/dprove.txt | 90 ++ testVectors/schnorr/dverify.json | 92 ++ testVectors/schnorr/dverify.txt | 80 + vagrant/README.md | 2 +- vagrant/bootstrap.sh | 29 +- 151 files changed, 16399 insertions(+), 3018 deletions(-)
