You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@milagro.apache.org by km...@apache.org on 2023/02/28 09:29:25 UTC

[incubator-milagro-MPC] branch develop updated (7685fa7 -> f373734)

This is an automated email from the ASF dual-hosted git repository.

kmccusker pushed a change to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-MPC.git


    from 7685fa7  work in progress: Fix TravisCI build (#48)
     add 6cfbdbf  Bit Commitment and NM Commitment revamp
     add 50cc432  Add GGN and GMR
     add ce9f6d5  Add GG20 ZKP
     add b1dc587  Move SSS code from mcc and add VSS
     add 6f03849  Migrate to GG20
     add c1f7684  Merge branch 'develop' into gg20
     new f373734  Merge pull request #51 from apache/gg20

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 CMakeLists.txt                                     |   10 +-
 .../{bench_mta_rp.c => bench_bit_commitment.c}     |   51 +-
 benchmark/bench_bit_commitment_ecp.c               |  115 ++
 ...ench_mta_zk.c => bench_bit_commitment_muladd.c} |   51 +-
 ...nch_bc_setup.c => bench_bit_commitment_setup.c} |   78 +-
 .../{bench_bc_setup.c => bench_gg20_zkp_phase3.c}  |  106 +-
 benchmark/bench_gg20_zkp_phase6.c                  |  177 ++
 benchmark/{bench_mta_rp.c => bench_ggn.c}          |  126 +-
 benchmark/{bench_factoring_zk.c => bench_gmr.c}    |   76 +-
 benchmark/bench_hidden_dlog.c                      |  214 ++
 benchmark/bench_modulus.c                          |  100 +
 benchmark/bench_mta.c                              |   12 +-
 benchmark/bench_mta_rp.c                           |   34 +-
 benchmark/bench_mta_zk.c                           |   34 +-
 benchmark/bench_mta_zkwc.c                         |   34 +-
 benchmark/bench_nm_commit.c                        |   14 +-
 benchmark/bench_phase5.c                           |  197 --
 benchmark/bench_shamir.c                           |  175 ++
 examples/example_bc_setup.c                        |   78 +-
 examples/example_ecdsa.c                           |  386 +---
 examples/example_ecdsa_mpc.c                       |  104 -
 examples/example_factoring_zk.c                    |  100 -
 examples/example_full.c                            | 1708 ----------------
 examples/example_gg20_full.c                       | 2056 ++++++++++++++++++++
 examples/example_gg20_reshare.c                    |  903 +++++++++
 examples/example_gg20_zkp_phase3.c                 |  137 ++
 examples/example_gg20_zkp_phase6.c                 |  165 ++
 examples/example_ggn.c                             |  236 +++
 examples/example_gmr.c                             |  123 ++
 examples/example_hidden_dlog.c                     |  168 ++
 examples/example_mta.c                             |    6 +-
 examples/example_mta_rp.c                          |   40 +-
 examples/example_mta_zk.c                          |   40 +-
 examples/example_mta_zk_interactive.c              |  244 ---
 examples/example_mta_zkwc.c                        |   43 +-
 examples/example_nm_commit.c                       |    8 +-
 examples/example_phase5.c                          |  208 --
 examples/example_product.c                         |   28 +-
 examples/example_r.c                               |  502 -----
 examples/example_s.c                               |  533 -----
 examples/example_shamir.c                          |  228 +++
 include/CMakeLists.txt                             |    3 -
 include/amcl/bit_commitment.h                      |  384 ++++
 include/amcl/bit_commitment_setup.h                |  198 ++
 include/amcl/commitments.h                         |  126 --
 include/amcl/factoring_zk.h                        |  105 -
 include/amcl/gg20_zkp.h                            |  226 +++
 include/amcl/ggn.h                                 |  196 ++
 include/amcl/gmr.h                                 |  108 +
 include/amcl/hash_utils.h                          |   92 +
 include/amcl/hidden_dlog.h                         |  120 ++
 include/amcl/modulus.h                             |   81 +
 include/amcl/mpc.h                                 |  137 +-
 include/amcl/mta.h                                 |  536 +----
 include/amcl/{mta.h => mta_zkp.h}                  |  246 +--
 include/amcl/nm_commitment.h                       |   64 +
 include/amcl/shamir.h                              |  105 +
 python/amcl/__pycache__/__init__.cpython-38.pyc    |  Bin 0 -> 163 bytes
 .../commitments.cpython-38.pyc}                    |  Bin 2996 -> 2779 bytes
 .../core_utils.cpython-38.pyc}                     |  Bin 4485 -> 4491 bytes
 .../amcl/__pycache__/factoring_zk.cpython-38.pyc   |  Bin 0 -> 4036 bytes
 python/amcl/__pycache__/mpc.cpython-38.pyc         |  Bin 0 -> 15495 bytes
 python/amcl/__pycache__/schnorr.cpython-38.pyc     |  Bin 0 -> 5339 bytes
 python/amcl/aes.py                                 |    4 +-
 python/amcl/bit_commitment.py                      |  426 ++++
 python/amcl/bls.py                                 |  234 ---
 python/amcl/core_utils.py                          |  123 +-
 python/amcl/factoring_zk.py                        |  152 --
 python/amcl/gg20_zkp.py                            |  417 ++++
 benchmark/bench.h => python/amcl/ggn.py            |   32 +-
 python/amcl/gmr.py                                 |  177 ++
 python/amcl/mpc.py                                 |   65 +-
 python/amcl/mta_zkp.py                             |  113 ++
 python/amcl/{commitments.py => nm_commitment.py}   |   24 +-
 python/amcl/schnorr.py                             |    3 -
 python/amcl/shamir.py                              |  260 +++
 python/benchmark/bench_aes.py                      |    6 +-
 python/benchmark/bench_bc_setup.py                 |   65 +
 python/benchmark/bench_gg20_zkp.py                 |  112 ++
 python/benchmark/bench_gmr.py                      |   65 +
 python/benchmark/bench_mta.py                      |   18 +-
 python/benchmark/bench_nm_commit.py                |   10 +-
 python/benchmark/bench_schnorr.py                  |    2 +-
 python/benchmark/bench_shamir.py                   |   78 +
 python/benchmark/bench_zk_factoring.py             |   53 -
 python/examples/example_aes.py                     |   32 +-
 python/examples/example_bc_setup.py                |   71 +
 python/examples/example_bls.py                     |  150 --
 python/examples/example_dump_keys.py               |    6 +-
 python/examples/example_ecdsa.py                   |   25 +-
 python/examples/example_full.py                    |   53 +-
 python/examples/example_gg20_zkp.py                |  195 ++
 python/examples/example_gmr.py                     |   71 +
 python/examples/example_mta.py                     |   12 +-
 python/examples/example_nm_commit.py               |    9 +-
 python/examples/example_r.py                       |   12 +-
 python/examples/example_s.py                       |   12 +-
 python/examples/example_shamir.py                  |  144 ++
 python/examples/example_zk_factoring.py            |   69 -
 python/test/CMakeLists.txt                         |   16 +-
 python/test/test_bc_setup.py                       |  188 ++
 python/test/test_ecdsa.py                          |   24 +-
 python/test/test_gg20_zkp.py                       |  225 +++
 python/test/test_gmr.py                            |  123 ++
 python/test/test_mta.py                            |    6 +-
 python/test/test_nm_commit.py                      |   17 +-
 python/test/test_r.py                              |   12 +-
 python/test/test_s.py                              |   12 +-
 python/test/test_schnorr.py                        |    6 +-
 python/test/test_shamir.py                         |  149 ++
 python/test/test_zk_factoring.py                   |  121 --
 scripts/buildAMCL.sh                               |    2 +-
 scripts/delete.sh                                  |    4 +-
 scripts/docker.sh                                  |    8 +-
 scripts/test.sh                                    |    2 +
 src/CMakeLists.txt                                 |    2 +-
 src/{mta.c => bit_commitment.c}                    |  677 ++-----
 src/bit_commitment_setup.c                         |  356 ++++
 src/commitments.c                                  |  294 ---
 src/factoring_zk.c                                 |  337 ----
 src/gg20_zkp.c                                     |  375 ++++
 src/ggn.c                                          |  161 ++
 src/gmr.c                                          |  298 +++
 src/hash_utils.c                                   |  106 +
 src/hidden_dlog.c                                  |  275 +++
 benchmark/bench.h => src/modulus.c                 |   36 +-
 src/mpc.c                                          |  296 ++-
 src/mta.c                                          | 1182 +----------
 src/mta_zkp.c                                      |  318 +++
 src/nm_commitment.c                                |   82 +
 src/schnorr.c                                      |   62 +-
 src/shamir.c                                       |  372 ++++
 ..._smoke.c => test_bit_commitment_muladd_smoke.c} |   52 +-
 ...p_smoke.c => test_bit_commitment_setup_smoke.c} |   64 +-
 ..._mta_rp_smoke.c => test_bit_commitment_smoke.c} |  102 +-
 test/smoke/test_dump_keys_smoke.c                  |    6 +-
 test/smoke/test_ecdsa_smoke.c                      |  118 +-
 test/smoke/test_factoring_zk_smoke.c               |   99 -
 ...chnorr_smoke.c => test_gg20_zkp_phase3_smoke.c} |   91 +-
 ...chnorr_smoke.c => test_gg20_zkp_phase6_smoke.c} |  101 +-
 test/smoke/test_ggn_smoke.c                        |  226 +++
 test/smoke/test_gmr_smoke.c                        |   91 +
 test/smoke/test_hidden_dlog_smoke.c                |  139 ++
 test/smoke/test_mta_rp_smoke.c                     |   77 +-
 test/smoke/test_mta_smoke.c                        |    6 +-
 test/smoke/test_mta_zk_smoke.c                     |   77 +-
 test/smoke/test_mta_zkwc_smoke.c                   |  102 +-
 test/smoke/test_nm_commit_smoke.c                  |   10 +-
 test/smoke/test_phase5_smoke.c                     |  149 --
 test/smoke/test_r_smoke.c                          |  115 +-
 test/smoke/test_s_smoke.c                          |   95 +-
 test/smoke/test_shamir_smoke.c                     |  178 ++
 test/test.c                                        |  166 +-
 test/test.h                                        |   79 +-
 test/unit/CMakeLists.txt                           |   84 +-
 ...ta_rp_commit.c => test_bit_commitment_commit.c} |   52 +-
 ...r_commit.c => test_bit_commitment_ecp_commit.c} |   35 +-
 ...r_commit.c => test_bit_commitment_ecp_verify.c} |   50 +-
 ...ommit.c => test_bit_commitment_muladd_commit.c} |   46 +-
 ...ctets.c => test_bit_commitment_muladd_octets.c} |   44 +-
 ..._prove.c => test_bit_commitment_muladd_prove.c} |   36 +-
 ...erify.c => test_bit_commitment_muladd_verify.c} |   58 +-
 ...ta_rp_octets.c => test_bit_commitment_octets.c} |   50 +-
 ..._mta_rp_prove.c => test_bit_commitment_prove.c} |   30 +-
 ...test_bc_setup.c => test_bit_commitment_setup.c} |   46 +-
 ...als.c => test_bit_commitment_setup_internals.c} |    4 +-
 ...ta_rp_verify.c => test_bit_commitment_verify.c} |   54 +-
 .../unit/test_bit_commitments_muladd_octets.c      |    0
 test/unit/test_gg20_zkp_generator.c                |   86 +
 test/unit/test_gg20_zkp_octets.c                   |  138 ++
 ...k_verify.c => test_gg20_zkp_phase3_challenge.c} |   71 +-
 ...norr_commit.c => test_gg20_zkp_phase3_commit.c} |   33 +-
 ...hnorr_commit.c => test_gg20_zkp_phase3_prove.c} |   57 +-
 ...norr_commit.c => test_gg20_zkp_phase3_verify.c} |   78 +-
 ...zk_prove.c => test_gg20_zkp_phase6_challenge.c} |   82 +-
 ...norr_commit.c => test_gg20_zkp_phase6_commit.c} |   62 +-
 ...hnorr_commit.c => test_gg20_zkp_phase6_prove.c} |   57 +-
 test/unit/test_gg20_zkp_phase6_verify.c            |  143 ++
 test/unit/{test_mta_rp_challenge.c => test_ggn.c}  |   59 +-
 .../{test_schnorr_commit.c => test_gmr_octets.c}   |   53 +-
 ...{test_factoring_zk_prove.c => test_gmr_prove.c} |   52 +-
 ...est_factoring_zk_verify.c => test_gmr_verify.c} |   76 +-
 ...ng_zk_verify.c => test_hidden_dlog_challenge.c} |   75 +-
 ..._schnorr_commit.c => test_hidden_dlog_commit.c} |   57 +-
 ...t_schnorr_commit.c => test_hidden_dlog_prove.c} |   49 +-
 ..._schnorr_commit.c => test_hidden_dlog_verify.c} |   62 +-
 test/unit/test_mta.c                               |    6 +-
 .../{test_mta_rp_challenge.c => test_mta_rp.c}     |   32 +-
 .../{test_mta_zk_challenge.c => test_mta_zk.c}     |   32 +-
 test/unit/test_mta_zk_prove.c                      |  150 --
 .../{test_mta_zkwc_challenge.c => test_mta_zkwc.c} |   42 +-
 test/unit/test_mta_zkwc_commit.c                   |  158 --
 test/unit/test_mta_zkwc_octets.c                   |  160 --
 test/unit/test_mta_zkwc_verify.c                   |  198 --
 test/unit/test_nm_commit.c                         |   18 +-
 test/unit/test_phase5_commit.c                     |  132 --
 test/unit/test_phase5_prove.c                      |  200 --
 test/unit/test_phase5_verify.c                     |  160 --
 test/unit/test_r.c                                 |   51 +-
 test/unit/test_s.c                                 |   45 +-
 .../unit/{test_d_schnorr_prove.c => test_shamir.c} |   98 +-
 test/unit/test_shamir_to_additive.c                |  144 ++
 test/unit/test_vss.c                               |  173 ++
 testVectors/bit_commitment/ecp_commit.json         |   52 +
 testVectors/bit_commitment/ecp_commit.txt          |   40 +
 testVectors/bit_commitment/ecp_verify.json         |   72 +
 testVectors/bit_commitment/ecp_verify.txt          |   60 +
 testVectors/bit_commitment/muladd_commit.json      |  222 +++
 testVectors/bit_commitment/muladd_commit.txt       |  210 ++
 testVectors/bit_commitment/muladd_octets.json      |  132 ++
 testVectors/bit_commitment/muladd_octets.txt       |  120 ++
 testVectors/bit_commitment/muladd_prove.json       |  202 ++
 testVectors/bit_commitment/muladd_prove.txt        |  190 ++
 testVectors/bit_commitment/muladd_verify.json      |  222 +++
 testVectors/bit_commitment/muladd_verify.txt       |  210 ++
 testVectors/bit_commitment/plain_commit.json       |  162 ++
 testVectors/bit_commitment/plain_commit.txt        |  150 ++
 testVectors/bit_commitment/plain_octets.json       |   93 +
 testVectors/bit_commitment/plain_octets.txt        |   80 +
 testVectors/bit_commitment/plain_prove.json        |  152 ++
 testVectors/bit_commitment/plain_prove.txt         |  140 ++
 testVectors/bit_commitment/plain_verify.json       |  162 ++
 testVectors/bit_commitment/plain_verify.txt        |  150 ++
 .../bc_setup.json => bit_commitment/setup.json}    |    0
 .../bc_setup.txt => bit_commitment/setup.txt}      |    0
 testVectors/factoring_zk/prove.json                |  112 --
 testVectors/factoring_zk/prove.txt                 |  100 -
 testVectors/factoring_zk/verify.json               |   82 -
 testVectors/factoring_zk/verify.txt                |   70 -
 testVectors/gg20_zkp/octets.txt                    |   59 +
 testVectors/gg20_zkp/phase3_challenge.json         |   82 +
 testVectors/gg20_zkp/phase3_challenge.txt          |   70 +
 testVectors/gg20_zkp/phase3_commit.json            |   62 +
 testVectors/gg20_zkp/phase3_commit.txt             |   50 +
 testVectors/gg20_zkp/phase3_prove.json             |  102 +
 testVectors/gg20_zkp/phase3_prove.txt              |   90 +
 testVectors/gg20_zkp/phase3_verify.json            |   82 +
 testVectors/gg20_zkp/phase3_verify.txt             |   70 +
 testVectors/gg20_zkp/phase6_challenge.json         |  112 ++
 testVectors/gg20_zkp/phase6_challenge.txt          |  100 +
 testVectors/gg20_zkp/phase6_commit.json            |   82 +
 testVectors/gg20_zkp/phase6_commit.txt             |   70 +
 testVectors/gg20_zkp/phase6_prove.json             |  102 +
 testVectors/gg20_zkp/phase6_prove.txt              |   90 +
 testVectors/gg20_zkp/phase6_verify.json            |  112 ++
 testVectors/gg20_zkp/phase6_verify.txt             |  100 +
 testVectors/ggn/challenge.json                     |  172 ++
 testVectors/ggn/challenge.txt                      |  160 ++
 testVectors/gmr/prove.json                         |   82 +
 testVectors/gmr/prove.txt                          |   70 +
 testVectors/gmr/verify.json                        |   72 +
 testVectors/gmr/verify.txt                         |   60 +
 testVectors/hidden_dlog/challenge.txt              |   90 +
 testVectors/hidden_dlog/commit.txt                 |   32 +
 testVectors/hidden_dlog/prove.txt                  |   28 +
 testVectors/hidden_dlog/verify.txt                 |   32 +
 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/mta/rp_challenge.json                  |  122 --
 testVectors/mta/rp_challenge.txt                   |  110 --
 testVectors/mta/rp_commit.json                     |  172 --
 testVectors/mta/rp_commit.txt                      |  160 --
 testVectors/mta/rp_prove.json                      |  152 --
 testVectors/mta/rp_prove.txt                       |  140 --
 testVectors/mta/rp_verify.json                     |  162 --
 testVectors/mta/rp_verify.txt                      |  150 --
 testVectors/mta_zkp/mta_challenge.json             |  172 ++
 testVectors/mta_zkp/mta_challenge.txt              |  160 ++
 testVectors/mta_zkp/mtawc_challenge.json           |  192 ++
 testVectors/mta_zkp/mtawc_challenge.txt            |  180 ++
 testVectors/mta_zkp/rp_challenge.json              |  142 ++
 testVectors/mta_zkp/rp_challenge.txt               |  130 ++
 .../nm_commit.json => nm_commitment/commit.json}   |    0
 .../nm_commit.txt => nm_commitment/commit.txt}     |    0
 testVectors/schnorr/challenge.json                 |   90 +-
 testVectors/schnorr/challenge.txt                  |   90 +-
 testVectors/schnorr/dchallenge.json                |  110 +-
 testVectors/schnorr/dchallenge.txt                 |  110 +-
 testVectors/schnorr/dprove.json                    |  140 +-
 testVectors/schnorr/dprove.txt                     |  140 +-
 testVectors/schnorr/dverify.json                   |  120 +-
 testVectors/schnorr/dverify.txt                    |  120 +-
 testVectors/shamir/SSS.json                        |   90 +
 testVectors/shamir/SSS.txt                         |   77 +
 testVectors/shamir/STA.json                        |   72 +
 testVectors/shamir/STA.txt                         |   60 +
 testVectors/shamir/VSS.json                        |   90 +
 testVectors/shamir/VSS.txt                         |   77 +
 vagrant/Vagrantfile                                |   31 +
 vagrant/bootstrap.sh                               |   39 +
 310 files changed, 23244 insertions(+), 17166 deletions(-)
 copy benchmark/{bench_mta_rp.c => bench_bit_commitment.c} (89%)
 create mode 100644 benchmark/bench_bit_commitment_ecp.c
 copy benchmark/{bench_mta_zk.c => bench_bit_commitment_muladd.c} (91%)
 copy benchmark/{bench_bc_setup.c => bench_bit_commitment_setup.c} (62%)
 rename benchmark/{bench_bc_setup.c => bench_gg20_zkp_phase3.c} (50%)
 create mode 100644 benchmark/bench_gg20_zkp_phase6.c
 copy benchmark/{bench_mta_rp.c => bench_ggn.c} (51%)
 rename benchmark/{bench_factoring_zk.c => bench_gmr.c} (55%)
 create mode 100644 benchmark/bench_hidden_dlog.c
 create mode 100644 benchmark/bench_modulus.c
 delete mode 100644 benchmark/bench_phase5.c
 create mode 100644 benchmark/bench_shamir.c
 delete mode 100644 examples/example_ecdsa_mpc.c
 delete mode 100644 examples/example_factoring_zk.c
 delete mode 100644 examples/example_full.c
 create mode 100644 examples/example_gg20_full.c
 create mode 100644 examples/example_gg20_reshare.c
 create mode 100644 examples/example_gg20_zkp_phase3.c
 create mode 100644 examples/example_gg20_zkp_phase6.c
 create mode 100644 examples/example_ggn.c
 create mode 100644 examples/example_gmr.c
 create mode 100644 examples/example_hidden_dlog.c
 delete mode 100644 examples/example_mta_zk_interactive.c
 delete mode 100644 examples/example_phase5.c
 delete mode 100644 examples/example_r.c
 delete mode 100644 examples/example_s.c
 create mode 100644 examples/example_shamir.c
 create mode 100644 include/amcl/bit_commitment.h
 create mode 100644 include/amcl/bit_commitment_setup.h
 delete mode 100644 include/amcl/commitments.h
 delete mode 100644 include/amcl/factoring_zk.h
 create mode 100644 include/amcl/gg20_zkp.h
 create mode 100644 include/amcl/ggn.h
 create mode 100644 include/amcl/gmr.h
 create mode 100644 include/amcl/hash_utils.h
 create mode 100644 include/amcl/hidden_dlog.h
 create mode 100644 include/amcl/modulus.h
 copy include/amcl/{mta.h => mta_zkp.h} (66%)
 create mode 100644 include/amcl/nm_commitment.h
 create mode 100644 include/amcl/shamir.h
 create mode 100644 python/amcl/__pycache__/__init__.cpython-38.pyc
 copy python/amcl/{commitments.py => __pycache__/commitments.cpython-38.pyc} (51%)
 copy python/amcl/{core_utils.py => __pycache__/core_utils.cpython-38.pyc} (55%)
 create mode 100644 python/amcl/__pycache__/factoring_zk.cpython-38.pyc
 create mode 100644 python/amcl/__pycache__/mpc.cpython-38.pyc
 create mode 100644 python/amcl/__pycache__/schnorr.cpython-38.pyc
 create mode 100644 python/amcl/bit_commitment.py
 delete mode 100755 python/amcl/bls.py
 delete mode 100644 python/amcl/factoring_zk.py
 create mode 100644 python/amcl/gg20_zkp.py
 copy benchmark/bench.h => python/amcl/ggn.py (70%)
 create mode 100644 python/amcl/gmr.py
 create mode 100644 python/amcl/mta_zkp.py
 rename python/amcl/{commitments.py => nm_commitment.py} (85%)
 create mode 100755 python/amcl/shamir.py
 create mode 100755 python/benchmark/bench_bc_setup.py
 create mode 100755 python/benchmark/bench_gg20_zkp.py
 create mode 100755 python/benchmark/bench_gmr.py
 create mode 100755 python/benchmark/bench_shamir.py
 delete mode 100755 python/benchmark/bench_zk_factoring.py
 create mode 100755 python/examples/example_bc_setup.py
 delete mode 100755 python/examples/example_bls.py
 create mode 100755 python/examples/example_gg20_zkp.py
 create mode 100755 python/examples/example_gmr.py
 create mode 100755 python/examples/example_shamir.py
 delete mode 100755 python/examples/example_zk_factoring.py
 create mode 100755 python/test/test_bc_setup.py
 create mode 100755 python/test/test_gg20_zkp.py
 create mode 100755 python/test/test_gmr.py
 create mode 100755 python/test/test_shamir.py
 delete mode 100755 python/test/test_zk_factoring.py
 copy src/{mta.c => bit_commitment.c} (63%)
 create mode 100644 src/bit_commitment_setup.c
 delete mode 100644 src/commitments.c
 delete mode 100644 src/factoring_zk.c
 create mode 100644 src/gg20_zkp.c
 create mode 100644 src/ggn.c
 create mode 100644 src/gmr.c
 create mode 100644 src/hash_utils.c
 create mode 100644 src/hidden_dlog.c
 copy benchmark/bench.h => src/modulus.c (55%)
 create mode 100644 src/mta_zkp.c
 create mode 100644 src/nm_commitment.c
 create mode 100644 src/shamir.c
 rename test/smoke/{test_mta_zk_interactive_smoke.c => test_bit_commitment_muladd_smoke.c} (85%)
 rename test/smoke/{test_bc_setup_smoke.c => test_bit_commitment_setup_smoke.c} (54%)
 copy test/smoke/{test_mta_rp_smoke.c => test_bit_commitment_smoke.c} (66%)
 delete mode 100644 test/smoke/test_factoring_zk_smoke.c
 copy test/smoke/{test_d_schnorr_smoke.c => test_gg20_zkp_phase3_smoke.c} (52%)
 copy test/smoke/{test_d_schnorr_smoke.c => test_gg20_zkp_phase6_smoke.c} (54%)
 create mode 100644 test/smoke/test_ggn_smoke.c
 create mode 100644 test/smoke/test_gmr_smoke.c
 create mode 100644 test/smoke/test_hidden_dlog_smoke.c
 delete mode 100644 test/smoke/test_phase5_smoke.c
 create mode 100644 test/smoke/test_shamir_smoke.c
 rename test/unit/{test_mta_rp_commit.c => test_bit_commitment_commit.c} (64%)
 copy test/unit/{test_schnorr_commit.c => test_bit_commitment_ecp_commit.c} (70%)
 copy test/unit/{test_schnorr_commit.c => test_bit_commitment_ecp_verify.c} (60%)
 rename test/unit/{test_mta_zk_commit.c => test_bit_commitment_muladd_commit.c} (67%)
 rename test/unit/{test_mta_zk_octets.c => test_bit_commitment_muladd_octets.c} (68%)
 rename test/unit/{test_mta_zkwc_prove.c => test_bit_commitment_muladd_prove.c} (73%)
 rename test/unit/{test_mta_zk_verify.c => test_bit_commitment_muladd_verify.c} (72%)
 rename test/unit/{test_mta_rp_octets.c => test_bit_commitment_octets.c} (59%)
 rename test/unit/{test_mta_rp_prove.c => test_bit_commitment_prove.c} (80%)
 rename test/unit/{test_bc_setup.c => test_bit_commitment_setup.c} (59%)
 rename test/unit/{test_bc_internals.c => test_bit_commitment_setup_internals.c} (97%)
 rename test/unit/{test_mta_rp_verify.c => test_bit_commitment_verify.c} (71%)
 copy python/amcl/__init__.py => test/unit/test_bit_commitments_muladd_octets.c (100%)
 create mode 100644 test/unit/test_gg20_zkp_generator.c
 create mode 100644 test/unit/test_gg20_zkp_octets.c
 copy test/unit/{test_factoring_zk_verify.c => test_gg20_zkp_phase3_challenge.c} (60%)
 copy test/unit/{test_schnorr_commit.c => test_gg20_zkp_phase3_commit.c} (77%)
 copy test/unit/{test_schnorr_commit.c => test_gg20_zkp_phase3_prove.c} (57%)
 copy test/unit/{test_d_schnorr_commit.c => test_gg20_zkp_phase3_verify.c} (55%)
 copy test/unit/{test_factoring_zk_prove.c => test_gg20_zkp_phase6_challenge.c} (61%)
 copy test/unit/{test_d_schnorr_commit.c => test_gg20_zkp_phase6_commit.c} (61%)
 copy test/unit/{test_schnorr_commit.c => test_gg20_zkp_phase6_prove.c} (57%)
 create mode 100644 test/unit/test_gg20_zkp_phase6_verify.c
 copy test/unit/{test_mta_rp_challenge.c => test_ggn.c} (63%)
 copy test/unit/{test_schnorr_commit.c => test_gmr_octets.c} (62%)
 rename test/unit/{test_factoring_zk_prove.c => test_gmr_prove.c} (71%)
 copy test/unit/{test_factoring_zk_verify.c => test_gmr_verify.c} (64%)
 rename test/unit/{test_factoring_zk_verify.c => test_hidden_dlog_challenge.c} (62%)
 copy test/unit/{test_schnorr_commit.c => test_hidden_dlog_commit.c} (58%)
 copy test/unit/{test_schnorr_commit.c => test_hidden_dlog_prove.c} (63%)
 copy test/unit/{test_schnorr_commit.c => test_hidden_dlog_verify.c} (56%)
 rename test/unit/{test_mta_rp_challenge.c => test_mta_rp.c} (80%)
 rename test/unit/{test_mta_zk_challenge.c => test_mta_zk.c} (81%)
 delete mode 100644 test/unit/test_mta_zk_prove.c
 rename test/unit/{test_mta_zkwc_challenge.c => test_mta_zkwc.c} (75%)
 delete mode 100644 test/unit/test_mta_zkwc_commit.c
 delete mode 100644 test/unit/test_mta_zkwc_octets.c
 delete mode 100644 test/unit/test_mta_zkwc_verify.c
 delete mode 100644 test/unit/test_phase5_commit.c
 delete mode 100644 test/unit/test_phase5_prove.c
 delete mode 100644 test/unit/test_phase5_verify.c
 copy test/unit/{test_d_schnorr_prove.c => test_shamir.c} (53%)
 create mode 100644 test/unit/test_shamir_to_additive.c
 create mode 100644 test/unit/test_vss.c
 create mode 100644 testVectors/bit_commitment/ecp_commit.json
 create mode 100644 testVectors/bit_commitment/ecp_commit.txt
 create mode 100644 testVectors/bit_commitment/ecp_verify.json
 create mode 100644 testVectors/bit_commitment/ecp_verify.txt
 create mode 100644 testVectors/bit_commitment/muladd_commit.json
 create mode 100644 testVectors/bit_commitment/muladd_commit.txt
 create mode 100644 testVectors/bit_commitment/muladd_octets.json
 create mode 100644 testVectors/bit_commitment/muladd_octets.txt
 create mode 100644 testVectors/bit_commitment/muladd_prove.json
 create mode 100644 testVectors/bit_commitment/muladd_prove.txt
 create mode 100644 testVectors/bit_commitment/muladd_verify.json
 create mode 100644 testVectors/bit_commitment/muladd_verify.txt
 create mode 100644 testVectors/bit_commitment/plain_commit.json
 create mode 100644 testVectors/bit_commitment/plain_commit.txt
 create mode 100644 testVectors/bit_commitment/plain_octets.json
 create mode 100644 testVectors/bit_commitment/plain_octets.txt
 create mode 100644 testVectors/bit_commitment/plain_prove.json
 create mode 100644 testVectors/bit_commitment/plain_prove.txt
 create mode 100644 testVectors/bit_commitment/plain_verify.json
 create mode 100644 testVectors/bit_commitment/plain_verify.txt
 rename testVectors/{commitments/bc_setup.json => bit_commitment/setup.json} (100%)
 rename testVectors/{commitments/bc_setup.txt => bit_commitment/setup.txt} (100%)
 delete mode 100644 testVectors/factoring_zk/prove.json
 delete mode 100644 testVectors/factoring_zk/prove.txt
 delete mode 100644 testVectors/factoring_zk/verify.json
 delete mode 100644 testVectors/factoring_zk/verify.txt
 create mode 100644 testVectors/gg20_zkp/octets.txt
 create mode 100644 testVectors/gg20_zkp/phase3_challenge.json
 create mode 100644 testVectors/gg20_zkp/phase3_challenge.txt
 create mode 100644 testVectors/gg20_zkp/phase3_commit.json
 create mode 100644 testVectors/gg20_zkp/phase3_commit.txt
 create mode 100644 testVectors/gg20_zkp/phase3_prove.json
 create mode 100644 testVectors/gg20_zkp/phase3_prove.txt
 create mode 100644 testVectors/gg20_zkp/phase3_verify.json
 create mode 100644 testVectors/gg20_zkp/phase3_verify.txt
 create mode 100644 testVectors/gg20_zkp/phase6_challenge.json
 create mode 100644 testVectors/gg20_zkp/phase6_challenge.txt
 create mode 100644 testVectors/gg20_zkp/phase6_commit.json
 create mode 100644 testVectors/gg20_zkp/phase6_commit.txt
 create mode 100644 testVectors/gg20_zkp/phase6_prove.json
 create mode 100644 testVectors/gg20_zkp/phase6_prove.txt
 create mode 100644 testVectors/gg20_zkp/phase6_verify.json
 create mode 100644 testVectors/gg20_zkp/phase6_verify.txt
 create mode 100644 testVectors/ggn/challenge.json
 create mode 100644 testVectors/ggn/challenge.txt
 create mode 100644 testVectors/gmr/prove.json
 create mode 100644 testVectors/gmr/prove.txt
 create mode 100644 testVectors/gmr/verify.json
 create mode 100644 testVectors/gmr/verify.txt
 create mode 100644 testVectors/hidden_dlog/challenge.txt
 create mode 100644 testVectors/hidden_dlog/commit.txt
 create mode 100644 testVectors/hidden_dlog/prove.txt
 create mode 100644 testVectors/hidden_dlog/verify.txt
 delete mode 100644 testVectors/mpc/phase5_commit.json
 delete mode 100644 testVectors/mpc/phase5_commit.txt
 delete mode 100644 testVectors/mpc/phase5_prove.json
 delete mode 100644 testVectors/mpc/phase5_prove.txt
 delete mode 100644 testVectors/mpc/phase5_verify.json
 delete mode 100644 testVectors/mpc/phase5_verify.txt
 delete mode 100644 testVectors/mta/mta_challenge.json
 delete mode 100644 testVectors/mta/mta_challenge.txt
 delete mode 100644 testVectors/mta/mta_commit.json
 delete mode 100644 testVectors/mta/mta_commit.txt
 delete mode 100644 testVectors/mta/mta_prove.json
 delete mode 100644 testVectors/mta/mta_prove.txt
 delete mode 100644 testVectors/mta/mta_verify.json
 delete mode 100644 testVectors/mta/mta_verify.txt
 delete mode 100644 testVectors/mta/mtawc_challenge.json
 delete mode 100644 testVectors/mta/mtawc_challenge.txt
 delete mode 100644 testVectors/mta/mtawc_commit.json
 delete mode 100644 testVectors/mta/mtawc_commit.txt
 delete mode 100644 testVectors/mta/mtawc_prove.json
 delete mode 100644 testVectors/mta/mtawc_prove.txt
 delete mode 100644 testVectors/mta/mtawc_verify.json
 delete mode 100644 testVectors/mta/mtawc_verify.txt
 delete mode 100644 testVectors/mta/rp_challenge.json
 delete mode 100644 testVectors/mta/rp_challenge.txt
 delete mode 100644 testVectors/mta/rp_commit.json
 delete mode 100644 testVectors/mta/rp_commit.txt
 delete mode 100644 testVectors/mta/rp_prove.json
 delete mode 100644 testVectors/mta/rp_prove.txt
 delete mode 100644 testVectors/mta/rp_verify.json
 delete mode 100644 testVectors/mta/rp_verify.txt
 create mode 100644 testVectors/mta_zkp/mta_challenge.json
 create mode 100644 testVectors/mta_zkp/mta_challenge.txt
 create mode 100644 testVectors/mta_zkp/mtawc_challenge.json
 create mode 100644 testVectors/mta_zkp/mtawc_challenge.txt
 create mode 100644 testVectors/mta_zkp/rp_challenge.json
 create mode 100644 testVectors/mta_zkp/rp_challenge.txt
 rename testVectors/{commitments/nm_commit.json => nm_commitment/commit.json} (100%)
 rename testVectors/{commitments/nm_commit.txt => nm_commitment/commit.txt} (100%)
 create mode 100644 testVectors/shamir/SSS.json
 create mode 100644 testVectors/shamir/SSS.txt
 create mode 100644 testVectors/shamir/STA.json
 create mode 100644 testVectors/shamir/STA.txt
 create mode 100644 testVectors/shamir/VSS.json
 create mode 100644 testVectors/shamir/VSS.txt
 create mode 100755 vagrant/Vagrantfile
 create mode 100755 vagrant/bootstrap.sh


[incubator-milagro-MPC] 01/01: Merge pull request #51 from apache/gg20

Posted by km...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

kmccusker pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-MPC.git

commit f373734cb2c0901ba9271b2aefaaf38892449bda
Merge: 7685fa7 c1f7684
Author: Kealan McCusker <ke...@gmail.com>
AuthorDate: Tue Feb 28 09:29:20 2023 +0000

    Merge pull request #51 from apache/gg20
    
    GG20

 CMakeLists.txt                                     |   10 +-
 .../{bench_mta_rp.c => bench_bit_commitment.c}     |   51 +-
 benchmark/bench_bit_commitment_ecp.c               |  115 ++
 ...ench_mta_zk.c => bench_bit_commitment_muladd.c} |   51 +-
 ...nch_bc_setup.c => bench_bit_commitment_setup.c} |   78 +-
 .../{bench_bc_setup.c => bench_gg20_zkp_phase3.c}  |  106 +-
 benchmark/bench_gg20_zkp_phase6.c                  |  177 ++
 benchmark/{bench_mta_rp.c => bench_ggn.c}          |  126 +-
 benchmark/{bench_factoring_zk.c => bench_gmr.c}    |   76 +-
 benchmark/bench_hidden_dlog.c                      |  214 ++
 benchmark/bench_modulus.c                          |  100 +
 benchmark/bench_mta.c                              |   12 +-
 benchmark/bench_mta_rp.c                           |   34 +-
 benchmark/bench_mta_zk.c                           |   34 +-
 benchmark/bench_mta_zkwc.c                         |   34 +-
 benchmark/bench_nm_commit.c                        |   14 +-
 benchmark/bench_phase5.c                           |  197 --
 benchmark/bench_shamir.c                           |  175 ++
 examples/example_bc_setup.c                        |   78 +-
 examples/example_ecdsa.c                           |  386 +---
 examples/example_ecdsa_mpc.c                       |  104 -
 examples/example_factoring_zk.c                    |  100 -
 examples/example_full.c                            | 1708 ----------------
 examples/example_gg20_full.c                       | 2056 ++++++++++++++++++++
 examples/example_gg20_reshare.c                    |  903 +++++++++
 examples/example_gg20_zkp_phase3.c                 |  137 ++
 examples/example_gg20_zkp_phase6.c                 |  165 ++
 examples/example_ggn.c                             |  236 +++
 examples/example_gmr.c                             |  123 ++
 examples/example_hidden_dlog.c                     |  168 ++
 examples/example_mta.c                             |    6 +-
 examples/example_mta_rp.c                          |   40 +-
 examples/example_mta_zk.c                          |   40 +-
 examples/example_mta_zk_interactive.c              |  244 ---
 examples/example_mta_zkwc.c                        |   43 +-
 examples/example_nm_commit.c                       |    8 +-
 examples/example_phase5.c                          |  208 --
 examples/example_product.c                         |   28 +-
 examples/example_r.c                               |  502 -----
 examples/example_s.c                               |  533 -----
 examples/example_shamir.c                          |  228 +++
 include/CMakeLists.txt                             |    3 -
 include/amcl/bit_commitment.h                      |  384 ++++
 include/amcl/bit_commitment_setup.h                |  198 ++
 include/amcl/commitments.h                         |  126 --
 include/amcl/factoring_zk.h                        |  105 -
 include/amcl/gg20_zkp.h                            |  226 +++
 include/amcl/ggn.h                                 |  196 ++
 include/amcl/gmr.h                                 |  108 +
 include/amcl/hash_utils.h                          |   92 +
 include/amcl/hidden_dlog.h                         |  120 ++
 include/amcl/modulus.h                             |   81 +
 include/amcl/mpc.h                                 |  137 +-
 include/amcl/mta.h                                 |  536 +----
 include/amcl/{mta.h => mta_zkp.h}                  |  246 +--
 include/amcl/nm_commitment.h                       |   64 +
 include/amcl/shamir.h                              |  105 +
 python/amcl/__pycache__/__init__.cpython-38.pyc    |  Bin 0 -> 163 bytes
 .../commitments.cpython-38.pyc}                    |  Bin 2996 -> 2779 bytes
 .../core_utils.cpython-38.pyc}                     |  Bin 4485 -> 4491 bytes
 .../amcl/__pycache__/factoring_zk.cpython-38.pyc   |  Bin 0 -> 4036 bytes
 python/amcl/__pycache__/mpc.cpython-38.pyc         |  Bin 0 -> 15495 bytes
 python/amcl/__pycache__/schnorr.cpython-38.pyc     |  Bin 0 -> 5339 bytes
 python/amcl/aes.py                                 |    4 +-
 python/amcl/bit_commitment.py                      |  426 ++++
 python/amcl/bls.py                                 |  234 ---
 python/amcl/core_utils.py                          |  123 +-
 python/amcl/factoring_zk.py                        |  152 --
 python/amcl/gg20_zkp.py                            |  417 ++++
 .../test_nm_commit_smoke.c => python/amcl/ggn.py   |   44 +-
 python/amcl/gmr.py                                 |  177 ++
 python/amcl/mpc.py                                 |   65 +-
 python/amcl/mta_zkp.py                             |  113 ++
 python/amcl/{commitments.py => nm_commitment.py}   |   24 +-
 python/amcl/schnorr.py                             |    3 -
 python/amcl/shamir.py                              |  260 +++
 python/benchmark/bench_aes.py                      |    6 +-
 python/benchmark/bench_bc_setup.py                 |   65 +
 python/benchmark/bench_gg20_zkp.py                 |  112 ++
 python/benchmark/bench_gmr.py                      |   65 +
 python/benchmark/bench_mta.py                      |   18 +-
 python/benchmark/bench_nm_commit.py                |   10 +-
 python/benchmark/bench_schnorr.py                  |    2 +-
 python/benchmark/bench_shamir.py                   |   78 +
 python/benchmark/bench_zk_factoring.py             |   53 -
 python/examples/example_aes.py                     |   32 +-
 python/examples/example_bc_setup.py                |   71 +
 python/examples/example_bls.py                     |  150 --
 python/examples/example_dump_keys.py               |    6 +-
 python/examples/example_ecdsa.py                   |   25 +-
 python/examples/example_full.py                    |   53 +-
 python/examples/example_gg20_zkp.py                |  195 ++
 python/examples/example_gmr.py                     |   71 +
 python/examples/example_mta.py                     |   12 +-
 python/examples/example_nm_commit.py               |    9 +-
 python/examples/example_r.py                       |   12 +-
 python/examples/example_s.py                       |   12 +-
 python/examples/example_shamir.py                  |  144 ++
 python/examples/example_zk_factoring.py            |   69 -
 python/test/CMakeLists.txt                         |   16 +-
 python/test/test_bc_setup.py                       |  188 ++
 python/test/test_ecdsa.py                          |   24 +-
 python/test/test_gg20_zkp.py                       |  225 +++
 python/test/test_gmr.py                            |  123 ++
 python/test/test_mta.py                            |    6 +-
 python/test/test_nm_commit.py                      |   17 +-
 python/test/test_r.py                              |   12 +-
 python/test/test_s.py                              |   12 +-
 python/test/test_schnorr.py                        |    6 +-
 python/test/test_shamir.py                         |  149 ++
 python/test/test_zk_factoring.py                   |  121 --
 scripts/buildAMCL.sh                               |    2 +-
 scripts/delete.sh                                  |    4 +-
 scripts/docker.sh                                  |    8 +-
 scripts/test.sh                                    |    2 +
 src/CMakeLists.txt                                 |    2 +-
 src/{mta.c => bit_commitment.c}                    |  677 ++-----
 src/bit_commitment_setup.c                         |  356 ++++
 src/commitments.c                                  |  294 ---
 src/factoring_zk.c                                 |  337 ----
 src/gg20_zkp.c                                     |  375 ++++
 src/ggn.c                                          |  161 ++
 src/gmr.c                                          |  298 +++
 src/hash_utils.c                                   |  106 +
 src/hidden_dlog.c                                  |  275 +++
 test/smoke/test_nm_commit_smoke.c => src/modulus.c |   48 +-
 src/mpc.c                                          |  296 ++-
 src/mta.c                                          | 1182 +----------
 src/mta_zkp.c                                      |  318 +++
 src/nm_commitment.c                                |   82 +
 src/schnorr.c                                      |   62 +-
 src/shamir.c                                       |  372 ++++
 ..._smoke.c => test_bit_commitment_muladd_smoke.c} |   52 +-
 ...p_smoke.c => test_bit_commitment_setup_smoke.c} |   64 +-
 ..._mta_rp_smoke.c => test_bit_commitment_smoke.c} |  102 +-
 test/smoke/test_dump_keys_smoke.c                  |    6 +-
 test/smoke/test_ecdsa_smoke.c                      |  118 +-
 test/smoke/test_factoring_zk_smoke.c               |   99 -
 test/smoke/test_gg20_zkp_phase3_smoke.c            |  102 +
 test/smoke/test_gg20_zkp_phase6_smoke.c            |  124 ++
 test/smoke/test_ggn_smoke.c                        |  226 +++
 test/smoke/test_gmr_smoke.c                        |   91 +
 test/smoke/test_hidden_dlog_smoke.c                |  139 ++
 test/smoke/test_mta_rp_smoke.c                     |   77 +-
 test/smoke/test_mta_smoke.c                        |    6 +-
 test/smoke/test_mta_zk_smoke.c                     |   77 +-
 test/smoke/test_mta_zkwc_smoke.c                   |  102 +-
 test/smoke/test_nm_commit_smoke.c                  |   10 +-
 test/smoke/test_phase5_smoke.c                     |  149 --
 test/smoke/test_r_smoke.c                          |  115 +-
 test/smoke/test_s_smoke.c                          |   95 +-
 test/smoke/test_shamir_smoke.c                     |  178 ++
 test/test.c                                        |  166 +-
 test/test.h                                        |   79 +-
 test/unit/CMakeLists.txt                           |   84 +-
 ...ta_rp_commit.c => test_bit_commitment_commit.c} |   52 +-
 test/unit/test_bit_commitment_ecp_commit.c         |   92 +
 ...k_verify.c => test_bit_commitment_ecp_verify.c} |   87 +-
 ...ommit.c => test_bit_commitment_muladd_commit.c} |   46 +-
 ...ctets.c => test_bit_commitment_muladd_octets.c} |   44 +-
 ..._prove.c => test_bit_commitment_muladd_prove.c} |   36 +-
 ...erify.c => test_bit_commitment_muladd_verify.c} |   58 +-
 ...ta_rp_octets.c => test_bit_commitment_octets.c} |   50 +-
 ..._mta_rp_prove.c => test_bit_commitment_prove.c} |   30 +-
 ...test_bc_setup.c => test_bit_commitment_setup.c} |   46 +-
 ...als.c => test_bit_commitment_setup_internals.c} |    4 +-
 ...ta_rp_verify.c => test_bit_commitment_verify.c} |   54 +-
 test/unit/test_bit_commitments_muladd_octets.c     |    0
 test/unit/test_gg20_zkp_generator.c                |   86 +
 test/unit/test_gg20_zkp_octets.c                   |  138 ++
 ...k_verify.c => test_gg20_zkp_phase3_challenge.c} |   71 +-
 test/unit/test_gg20_zkp_phase3_commit.c            |   94 +
 test/unit/test_gg20_zkp_phase3_prove.c             |  112 ++
 test/unit/test_gg20_zkp_phase3_verify.c            |  120 ++
 ...zk_prove.c => test_gg20_zkp_phase6_challenge.c} |   82 +-
 test/unit/test_gg20_zkp_phase6_commit.c            |  110 ++
 test/unit/test_gg20_zkp_phase6_prove.c             |  112 ++
 test/unit/test_gg20_zkp_phase6_verify.c            |  143 ++
 test/unit/{test_mta_rp_challenge.c => test_ggn.c}  |   59 +-
 test/unit/test_gmr_octets.c                        |  104 +
 ...{test_factoring_zk_prove.c => test_gmr_prove.c} |   52 +-
 ...est_factoring_zk_verify.c => test_gmr_verify.c} |   76 +-
 ...ng_zk_verify.c => test_hidden_dlog_challenge.c} |   75 +-
 ...toring_zk_prove.c => test_hidden_dlog_commit.c} |   81 +-
 ...toring_zk_verify.c => test_hidden_dlog_prove.c} |   84 +-
 ...oring_zk_verify.c => test_hidden_dlog_verify.c} |   83 +-
 test/unit/test_mta.c                               |    6 +-
 .../{test_mta_rp_challenge.c => test_mta_rp.c}     |   32 +-
 .../{test_mta_zk_challenge.c => test_mta_zk.c}     |   32 +-
 .../{test_mta_zkwc_challenge.c => test_mta_zkwc.c} |   42 +-
 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                         |   18 +-
 test/unit/test_phase5_commit.c                     |  132 --
 test/unit/test_phase5_prove.c                      |  200 --
 test/unit/test_phase5_verify.c                     |  160 --
 test/unit/test_r.c                                 |   51 +-
 test/unit/test_s.c                                 |   45 +-
 .../{test_mta_rp_challenge.c => test_shamir.c}     |   95 +-
 test/unit/test_shamir_to_additive.c                |  144 ++
 test/unit/test_vss.c                               |  173 ++
 testVectors/bit_commitment/ecp_commit.json         |   52 +
 testVectors/bit_commitment/ecp_commit.txt          |   40 +
 testVectors/bit_commitment/ecp_verify.json         |   72 +
 testVectors/bit_commitment/ecp_verify.txt          |   60 +
 testVectors/bit_commitment/muladd_commit.json      |  222 +++
 testVectors/bit_commitment/muladd_commit.txt       |  210 ++
 testVectors/bit_commitment/muladd_octets.json      |  132 ++
 testVectors/bit_commitment/muladd_octets.txt       |  120 ++
 testVectors/bit_commitment/muladd_prove.json       |  202 ++
 testVectors/bit_commitment/muladd_prove.txt        |  190 ++
 testVectors/bit_commitment/muladd_verify.json      |  222 +++
 testVectors/bit_commitment/muladd_verify.txt       |  210 ++
 testVectors/bit_commitment/plain_commit.json       |  162 ++
 testVectors/bit_commitment/plain_commit.txt        |  150 ++
 testVectors/bit_commitment/plain_octets.json       |   93 +
 testVectors/bit_commitment/plain_octets.txt        |   80 +
 testVectors/bit_commitment/plain_prove.json        |  152 ++
 testVectors/bit_commitment/plain_prove.txt         |  140 ++
 testVectors/bit_commitment/plain_verify.json       |  162 ++
 testVectors/bit_commitment/plain_verify.txt        |  150 ++
 .../bc_setup.json => bit_commitment/setup.json}    |    0
 .../bc_setup.txt => bit_commitment/setup.txt}      |    0
 testVectors/factoring_zk/prove.json                |  112 --
 testVectors/factoring_zk/prove.txt                 |  100 -
 testVectors/factoring_zk/verify.json               |   82 -
 testVectors/factoring_zk/verify.txt                |   70 -
 testVectors/gg20_zkp/octets.txt                    |   59 +
 testVectors/gg20_zkp/phase3_challenge.json         |   82 +
 testVectors/gg20_zkp/phase3_challenge.txt          |   70 +
 testVectors/gg20_zkp/phase3_commit.json            |   62 +
 testVectors/gg20_zkp/phase3_commit.txt             |   50 +
 testVectors/gg20_zkp/phase3_prove.json             |  102 +
 testVectors/gg20_zkp/phase3_prove.txt              |   90 +
 testVectors/gg20_zkp/phase3_verify.json            |   82 +
 testVectors/gg20_zkp/phase3_verify.txt             |   70 +
 testVectors/gg20_zkp/phase6_challenge.json         |  112 ++
 testVectors/gg20_zkp/phase6_challenge.txt          |  100 +
 testVectors/gg20_zkp/phase6_commit.json            |   82 +
 testVectors/gg20_zkp/phase6_commit.txt             |   70 +
 testVectors/gg20_zkp/phase6_prove.json             |  102 +
 testVectors/gg20_zkp/phase6_prove.txt              |   90 +
 testVectors/gg20_zkp/phase6_verify.json            |  112 ++
 testVectors/gg20_zkp/phase6_verify.txt             |  100 +
 testVectors/ggn/challenge.json                     |  172 ++
 testVectors/ggn/challenge.txt                      |  160 ++
 testVectors/gmr/prove.json                         |   82 +
 testVectors/gmr/prove.txt                          |   70 +
 testVectors/gmr/verify.json                        |   72 +
 testVectors/gmr/verify.txt                         |   60 +
 testVectors/hidden_dlog/challenge.txt              |   90 +
 testVectors/hidden_dlog/commit.txt                 |   32 +
 testVectors/hidden_dlog/prove.txt                  |   28 +
 testVectors/hidden_dlog/verify.txt                 |   32 +
 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/mta/rp_challenge.json                  |  122 --
 testVectors/mta/rp_challenge.txt                   |  110 --
 testVectors/mta/rp_commit.json                     |  172 --
 testVectors/mta/rp_commit.txt                      |  160 --
 testVectors/mta/rp_prove.json                      |  152 --
 testVectors/mta/rp_prove.txt                       |  140 --
 testVectors/mta/rp_verify.json                     |  162 --
 testVectors/mta/rp_verify.txt                      |  150 --
 testVectors/mta_zkp/mta_challenge.json             |  172 ++
 testVectors/mta_zkp/mta_challenge.txt              |  160 ++
 testVectors/mta_zkp/mtawc_challenge.json           |  192 ++
 testVectors/mta_zkp/mtawc_challenge.txt            |  180 ++
 testVectors/mta_zkp/rp_challenge.json              |  142 ++
 testVectors/mta_zkp/rp_challenge.txt               |  130 ++
 .../nm_commit.json => nm_commitment/commit.json}   |    0
 .../nm_commit.txt => nm_commitment/commit.txt}     |    0
 testVectors/schnorr/challenge.json                 |   90 +-
 testVectors/schnorr/challenge.txt                  |   90 +-
 testVectors/schnorr/dchallenge.json                |  110 +-
 testVectors/schnorr/dchallenge.txt                 |  110 +-
 testVectors/schnorr/dprove.json                    |  140 +-
 testVectors/schnorr/dprove.txt                     |  140 +-
 testVectors/schnorr/dverify.json                   |  120 +-
 testVectors/schnorr/dverify.txt                    |  120 +-
 testVectors/shamir/SSS.json                        |   90 +
 testVectors/shamir/SSS.txt                         |   77 +
 testVectors/shamir/STA.json                        |   72 +
 testVectors/shamir/STA.txt                         |   60 +
 testVectors/shamir/VSS.json                        |   90 +
 testVectors/shamir/VSS.txt                         |   77 +
 vagrant/Vagrantfile                                |   31 +
 vagrant/bootstrap.sh                               |   39 +
 310 files changed, 23881 insertions(+), 17070 deletions(-)