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:36:22 UTC

[incubator-milagro-MPC] 01/01: Merge pull request #52 from apache/develop

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 cd502bf2acc658fe259bad0b7f8fefb27b024b87
Merge: 5ff7ac4 f373734
Author: Kealan McCusker <ke...@gmail.com>
AuthorDate: Tue Feb 28 09:36:15 2023 +0000

    Merge pull request #52 from apache/develop
    
    Make master default branch

 .dockerignore                                      |    1 -
 .gitignore                                         |    2 +-
 .travis.yml                                        |   14 +-
 CMakeLists.txt                                     |   10 +-
 DISCLAIMER                                         |   10 +
 Dockerfile                                         |   91 +-
 NOTICE                                             |    5 +
 README.md                                          |  172 +-
 VERSION                                            |    2 +-
 .../{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/README.md                                  |   71 -
 vagrant/Vagrantfile                                |    2 +-
 vagrant/bootstrap.sh                               |    4 +-
 319 files changed, 24011 insertions(+), 17244 deletions(-)