From 6006120e60aaccab9ada135858f979e92c67324b Mon Sep 17 00:00:00 2001 From: T-Hax <> Date: Wed, 3 May 2023 20:35:27 +0000 Subject: [PATCH] Set up monorepo Signed-off-by: T-Hax <> --- .editorconfig | 10 + .env.example | 1 + .gitattributes | 4 + .gitignore | 17 + .vscode/extensions.json | 5 + .vscode/settings.json | 7 + .../@yarnpkg/plugin-workspace-tools.cjs | Bin 0 -> 51557 bytes .yarn/sdks/integrations.yml | 5 + .yarnrc.yml | 31 + @tornado/circomlib/.gitignore | 74 + @tornado/circomlib/README.md | 21 + .../calcpedersenbases/calcpedersenbases.js | 83 + @tornado/circomlib/circuits/README.md | 830 + @tornado/circomlib/circuits/aliascheck.circom | 43 + @tornado/circomlib/circuits/babyjub.circom | 106 + @tornado/circomlib/circuits/binsub.circom | 71 + @tornado/circomlib/circuits/binsum.circom | 95 + @tornado/circomlib/circuits/bitify.circom | 103 + .../circomlib/circuits/comparators.circom | 139 + .../circomlib/circuits/compconstant.circom | 74 + @tornado/circomlib/circuits/eddsa.circom | 141 + @tornado/circomlib/circuits/eddsamimc.circom | 122 + .../circomlib/circuits/eddsamimcsponge.circom | 122 + .../circomlib/circuits/eddsaposeidon.circom | 121 + @tornado/circomlib/circuits/escalarmul.circom | 165 + .../circomlib/circuits/escalarmulany.circom | 196 + .../circomlib/circuits/escalarmulfix.circom | 300 + .../circuits/escalarmulw4table.circom | 51 + @tornado/circomlib/circuits/gates.circom | 92 + @tornado/circomlib/circuits/mimc.circom | 155 + @tornado/circomlib/circuits/mimcsponge.circom | 290 + @tornado/circomlib/circuits/montgomery.circom | 142 + .../circomlib/circuits/multiplexer.circom | 113 + @tornado/circomlib/circuits/mux1.circom | 47 + @tornado/circomlib/circuits/mux2.circom | 62 + @tornado/circomlib/circuits/mux3.circom | 74 + @tornado/circomlib/circuits/mux4.circom | 118 + @tornado/circomlib/circuits/pedersen.circom | 256 + .../circomlib/circuits/pedersen_old.circom | 66 + @tornado/circomlib/circuits/pointbits.circom | 163 + @tornado/circomlib/circuits/poseidon.circom | 203 + @tornado/circomlib/circuits/sha256/ch.circom | 46 + .../circuits/sha256/constants.circom | 52 + .../circomlib/circuits/sha256/main.circom | 34 + @tornado/circomlib/circuits/sha256/maj.circom | 44 + .../circomlib/circuits/sha256/rotate.circom | 27 + .../circomlib/circuits/sha256/sha256.circom | 81 + .../circomlib/circuits/sha256/sha256_2.circom | 90 + .../circuits/sha256/sha256compression.circom | 156 + .../circomlib/circuits/sha256/shift.circom | 32 + .../circomlib/circuits/sha256/sigma.circom | 68 + .../circuits/sha256/sigmaplus.circom | 45 + @tornado/circomlib/circuits/sha256/t1.circom | 52 + @tornado/circomlib/circuits/sha256/t2.circom | 47 + .../circomlib/circuits/sha256/xor3.circom | 44 + @tornado/circomlib/circuits/sign.circom | 35 + .../circuits/smt/smthash_mimc.circom | 57 + .../circuits/smt/smthash_poseidon.circom | 56 + .../circomlib/circuits/smt/smtlevins.circom | 100 + .../circuits/smt/smtprocessor.circom | 258 + .../circuits/smt/smtprocessorlevel.circom | 94 + .../circuits/smt/smtprocessorsm.circom | 164 + .../circomlib/circuits/smt/smtverifier.circom | 135 + .../circuits/smt/smtverifierlevel.circom | 71 + .../circuits/smt/smtverifiersm.circom | 105 + @tornado/circomlib/circuits/switcher.circom | 40 + @tornado/circomlib/doc/root_transfer.monopic | Bin 0 -> 5033 bytes @tornado/circomlib/doc/smt_diagram_0.monopic | Bin 0 -> 4530 bytes @tornado/circomlib/doc/smt_diagram_1.monopic | Bin 0 -> 6198 bytes @tornado/circomlib/doc/smt_hash.monopic | Bin 0 -> 2871 bytes @tornado/circomlib/doc/smt_levins.monopic | Bin 0 -> 3410 bytes @tornado/circomlib/doc/smt_sm.monopic | Bin 0 -> 4060 bytes .../circomlib/doc/smt_verifier_sm.monopic | Bin 0 -> 3170 bytes @tornado/circomlib/doc/voting.monopic | Bin 0 -> 4195 bytes @tornado/circomlib/doc/window.monopic | Bin 0 -> 3552 bytes @tornado/circomlib/doc/window_chain.monopic | Bin 0 -> 2901 bytes @tornado/circomlib/index.d.ts | 328 + @tornado/circomlib/index.d.ts.map | 1 + @tornado/circomlib/index.js | 9 + @tornado/circomlib/package.json | 41 + @tornado/circomlib/src/babyjub.js | 109 + @tornado/circomlib/src/eddsa.js | 223 + @tornado/circomlib/src/evmasm.js | 197 + @tornado/circomlib/src/g2_gencontract.js | 583 + @tornado/circomlib/src/mimc7.js | 64 + @tornado/circomlib/src/mimc_gencontract.js | 114 + @tornado/circomlib/src/mimc_print_iv.js | 3 + @tornado/circomlib/src/mimc_printconstants.js | 13 + @tornado/circomlib/src/mimc_printcontract.js | 13 + @tornado/circomlib/src/mimcsponge.js | 86 + .../circomlib/src/mimcsponge_gencontract.js | 116 + .../src/mimcsponge_printconstants.js | 13 + .../circomlib/src/mimcsponge_printcontract.js | 13 + @tornado/circomlib/src/pedersenHash.js | 111 + @tornado/circomlib/src/pedersen_printbases.js | 13 + @tornado/circomlib/src/poseidon.js | 116 + .../circomlib/src/poseidon_gencontract.js | 180 + .../circomlib/src/poseidon_printconstants.js | 16 + .../circomlib/src/poseidon_printcontract.js | 5 + .../circomlib/src/poseidon_printmatrix.js | 22 + @tornado/circomlib/src/smt.js | 313 + @tornado/circomlib/src/smt_hashes_mimc.js | 10 + @tornado/circomlib/src/smt_hashes_poseidon.js | 12 + @tornado/circomlib/src/smt_memdb.js | 58 + @tornado/circomlib/test/aliascheck.js | 76 + @tornado/circomlib/test/aliascheckbabyjub.js | 75 + @tornado/circomlib/test/babyjub.js | 126 + @tornado/circomlib/test/babyjub_js.js | 166 + @tornado/circomlib/test/binsub.js | 56 + @tornado/circomlib/test/binsum.js | 35 + .../test/circuits/aliascheck_test.circom | 3 + .../circuits/aliascheckbabyjub_test.circom | 3 + .../test/circuits/babyadd_tester.circom | 3 + .../test/circuits/babycheck_test.circom | 3 + .../test/circuits/babypbk_test.circom | 3 + .../test/circuits/binsub_test.circom | 26 + .../test/circuits/constants_test.circom | 18 + .../circomlib/test/circuits/eddsa_test.circom | 3 + .../test/circuits/eddsamimc_test.circom | 3 + .../test/circuits/eddsamimcsponge_test.circom | 3 + .../test/circuits/eddsaposeidon_test.circom | 3 + .../test/circuits/edwards2montgomery.circom | 3 + .../test/circuits/escalarmul_min_test.circom | 26 + .../test/circuits/escalarmul_test.circom | 31 + .../test/circuits/escalarmul_test_min.circom | 26 + .../test/circuits/escalarmulany_test.circom | 28 + .../test/circuits/escalarmulfix_test.circom | 29 + .../test/circuits/escalarmulw4table.circom | 6 + .../circuits/escalarmulw4table_test.circom | 17 + .../circuits/escalarmulw4table_test3.circom | 17 + .../test/circuits/greatereqthan.circom | 4 + .../test/circuits/greaterthan.circom | 4 + .../circomlib/test/circuits/isequal.circom | 4 + .../circomlib/test/circuits/iszero.circom | 5 + .../circomlib/test/circuits/lesseqthan.circom | 4 + .../circomlib/test/circuits/lessthan.circom | 4 + .../circuits/mimc_sponge_hash_test.circom | 3 + .../test/circuits/mimc_sponge_test.circom | 3 + .../circomlib/test/circuits/mimc_test.circom | 3 + .../test/circuits/montgomery2edwards.circom | 3 + .../test/circuits/montgomeryadd.circom | 3 + .../test/circuits/montgomerydouble.circom | 3 + .../circomlib/test/circuits/mux1_1.circom | 31 + .../circomlib/test/circuits/mux2_1.circom | 35 + .../circomlib/test/circuits/mux3_1.circom | 39 + .../circomlib/test/circuits/mux4_1.circom | 54 + .../test/circuits/pedersen2_test.circom | 32 + .../test/circuits/pedersen_test.circom | 29 + .../test/circuits/pointbits_loopback.circom | 23 + .../test/circuits/poseidon_test.circom | 3 + .../test/circuits/sha256_2_test.circom | 15 + .../test/circuits/sha256_test448.circom | 3 + .../test/circuits/sha256_test512.circom | 3 + .../circomlib/test/circuits/sign_test.circom | 3 + .../test/circuits/smtprocessor10_test.circom | 3 + .../test/circuits/smtverifier10_test.circom | 3 + .../circomlib/test/circuits/sum_test.circom | 26 + @tornado/circomlib/test/comparators.js | 193 + @tornado/circomlib/test/eddsa.js | 74 + @tornado/circomlib/test/eddsa_js.js | 82 + @tornado/circomlib/test/eddsamimc.js | 98 + @tornado/circomlib/test/eddsamimcsponge.js | 99 + @tornado/circomlib/test/eddsaposeidon.js | 98 + @tornado/circomlib/test/escalarmul.js | 172 + @tornado/circomlib/test/escalarmulany.js | 59 + @tornado/circomlib/test/escalarmulfix.js | 112 + .../circomlib/test/helpers/printsignal.js | 22 + @tornado/circomlib/test/helpers/sha256.js | 178 + @tornado/circomlib/test/mimccircuit.js | 35 + @tornado/circomlib/test/mimccontract.js | 48 + @tornado/circomlib/test/mimcspongecircuit.js | 58 + @tornado/circomlib/test/mimcspongecontract.js | 43 + @tornado/circomlib/test/montgomery.js | 99 + @tornado/circomlib/test/multiplexer.js | 133 + @tornado/circomlib/test/pedersen.js | 100 + @tornado/circomlib/test/pedersen2.js | 74 + @tornado/circomlib/test/point2bits.js | 33 + @tornado/circomlib/test/poseidoncircuit.js | 60 + @tornado/circomlib/test/poseidoncontract.js | 49 + @tornado/circomlib/test/rawsmt3.circom | 23 + @tornado/circomlib/test/sha256.js | 136 + @tornado/circomlib/test/sign.js | 88 + @tornado/circomlib/test/smtjs.js | 182 + @tornado/circomlib/test/smtprocessor.js | 217 + @tornado/circomlib/test/smtverifier.js | 138 + @tornado/circomlib/test/smtverifier_adria.js | 98 + @tornado/circomlib/tsconfig.json | 22 + @tornado/fixed-merkle-tree/.gitignore | 74 + @tornado/fixed-merkle-tree/README.md | 35 + @tornado/fixed-merkle-tree/index.d.ts | 112 + @tornado/fixed-merkle-tree/index.d.ts.map | 1 + @tornado/fixed-merkle-tree/index.js | 1 + @tornado/fixed-merkle-tree/package-lock.json | 5411 ++++++ @tornado/fixed-merkle-tree/package.json | 32 + @tornado/fixed-merkle-tree/src/merkleTree.js | 212 + @tornado/fixed-merkle-tree/src/mimc.js | 3 + @tornado/fixed-merkle-tree/tsconfig.json | 22 + @tornado/snarkjs/.eslintrc.js | 33 + @tornado/snarkjs/.gitignore | 77 + @tornado/snarkjs/COPYING | 674 + @tornado/snarkjs/README.md | 138 + @tornado/snarkjs/cli.js | 544 + @tornado/snarkjs/index.d.ts | 514 + @tornado/snarkjs/index.d.ts.map | 1 + @tornado/snarkjs/index.js | 44 + @tornado/snarkjs/package-lock.json | 1330 ++ @tornado/snarkjs/package.json | 43 + @tornado/snarkjs/src/bigint.js | 522 + @tornado/snarkjs/src/bn128.js | 445 + @tornado/snarkjs/src/calculateWitness.js | 233 + @tornado/snarkjs/src/circuit.js | 191 + @tornado/snarkjs/src/f2field.js | 137 + @tornado/snarkjs/src/f3field.js | 177 + @tornado/snarkjs/src/futils.js | 53 + @tornado/snarkjs/src/gcurve.js | 190 + @tornado/snarkjs/src/polfield.js | 534 + @tornado/snarkjs/src/prover_groth.js | 141 + @tornado/snarkjs/src/prover_kimleeoh.js | 177 + @tornado/snarkjs/src/prover_original.js | 210 + @tornado/snarkjs/src/ratfield.js | 127 + @tornado/snarkjs/src/setup_groth.js | 212 + @tornado/snarkjs/src/setup_kimleeoh.js | 233 + @tornado/snarkjs/src/setup_original.js | 238 + @tornado/snarkjs/src/stringifybigint.js | 55 + @tornado/snarkjs/src/verifier.js | 67 + @tornado/snarkjs/src/verifier_groth.js | 46 + @tornado/snarkjs/src/verifier_kimleeoh.js | 75 + @tornado/snarkjs/src/verifier_original.js | 67 + @tornado/snarkjs/src/zqfield.js | 151 + @tornado/snarkjs/templates/verifier_groth.sol | 228 + .../snarkjs/templates/verifier_kimleeoh.sol | 219 + .../snarkjs/templates/verifier_original.sol | 260 + @tornado/snarkjs/test/algebra.js | 254 + @tornado/snarkjs/test/calculatewitness.js | 40 + @tornado/snarkjs/test/circuit/sum.json | 2371 +++ @tornado/snarkjs/test/pols.js | 217 + @tornado/snarkjs/test/ratzqfield.js | 89 + @tornado/snarkjs/test/zksnark.js | 196 + @tornado/snarkjs/test/zksnark_groth.js | 44 + @tornado/snarkjs/test/zksnark_kimleeoh.js | 44 + @tornado/snarkjs/tsconfig.json | 22 + @tornado/web3-providers-http/.gitignore | 13 + @tornado/web3-providers-http/README.md | 47 + @tornado/web3-providers-http/config | 22 + @tornado/web3-providers-http/lib/index.js | 125 + .../web3-providers-http/package-lock.json | 2171 +++ @tornado/web3-providers-http/package.json | 27 + @tornado/web3-providers-http/src/index.js | 142 + @tornado/web3-providers-http/tsconfig.json | 9 + @tornado/web3-providers-http/types/index.d.ts | 66 + .../types/tests/web3-provider-http-tests.ts | 51 + .../web3-providers-http/types/tsconfig.json | 17 + .../web3-providers-http/types/tslint.json | 10 + @tornado/websnark/.eslintrc.js | 37 + @tornado/websnark/.gitignore | 77 + @tornado/websnark/COPYING | 674 + @tornado/websnark/README.md | 141 + @tornado/websnark/TODO | 3 + @tornado/websnark/build/groth16_wasm.js | 5 + @tornado/websnark/build/websnark.js | 6729 ++++++++ @tornado/websnark/index.d.ts | 164 + @tornado/websnark/index.d.ts.map | 1 + @tornado/websnark/index.js | 22 + @tornado/websnark/main.js | 54 + @tornado/websnark/package-lock.json | 3494 ++++ @tornado/websnark/package.json | 41 + @tornado/websnark/src/bn128.js | 240 + @tornado/websnark/src/build_curve.js | 436 + @tornado/websnark/src/build_f1.js | 80 + @tornado/websnark/src/build_f1m.js | 473 + @tornado/websnark/src/build_f2m.js | 307 + @tornado/websnark/src/build_fft.js | 813 + @tornado/websnark/src/build_int.js | 960 ++ @tornado/websnark/src/build_mem.js | 127 + @tornado/websnark/src/build_mulacc.js | 205 + @tornado/websnark/src/build_multiexp.js | 857 + @tornado/websnark/src/build_pol.js | 158 + @tornado/websnark/src/build_test.js | 23 + @tornado/websnark/src/build_testf1.js | 55 + @tornado/websnark/src/build_testg1.js | 47 + @tornado/websnark/src/build_timesscalar.js | 80 + @tornado/websnark/src/build_tomcook.js | 606 + @tornado/websnark/src/build_tomcook.js.old | 1436 ++ @tornado/websnark/src/f1.js | 153 + @tornado/websnark/src/groth16.js | 611 + @tornado/websnark/src/protoboard.js | 132 + @tornado/websnark/src/utils.js | 105 + @tornado/websnark/test/bn128.js | 147 + @tornado/websnark/test/data/proving_key.bin | Bin 0 -> 34339292 bytes @tornado/websnark/test/data/public.json | 60 + .../websnark/test/data/verification_key.json | 378 + @tornado/websnark/test/data/witness.bin | Bin 0 -> 2119424 bytes @tornado/websnark/test/f1.js | 541 + @tornado/websnark/test/fft.js | 123 + @tornado/websnark/test/groth16.js | 68 + @tornado/websnark/test/helpers/helpers.js | 25 + @tornado/websnark/test/int.js | 84 + @tornado/websnark/test/tomcook.js | 202 + @tornado/websnark/tools/buildpkey.js | 240 + @tornado/websnark/tools/buildwasm.js | 55 + @tornado/websnark/tools/buildwitness.js | 76 + @tornado/websnark/tools/stringifybigint.js | 92 + @tornado/websnark/tsconfig.json | 22 + @tornado/xhr2-cookies/.gitignore | 14 + @tornado/xhr2-cookies/.npmignore | 4 + @tornado/xhr2-cookies/README.md | 30 + @tornado/xhr2-cookies/dist/errors.d.ts | 8 + @tornado/xhr2-cookies/dist/errors.js | 45 + @tornado/xhr2-cookies/dist/errors.js.map | 1 + @tornado/xhr2-cookies/dist/index.d.ts | 2 + @tornado/xhr2-cookies/dist/index.js | 9 + @tornado/xhr2-cookies/dist/index.js.map | 1 + .../xhr2-cookies/dist/progress-event.d.ts | 11 + @tornado/xhr2-cookies/dist/progress-event.js | 15 + .../xhr2-cookies/dist/progress-event.js.map | 1 + .../dist/xml-http-request-event-target.d.ts | 19 + .../dist/xml-http-request-event-target.js | 41 + .../dist/xml-http-request-event-target.js.map | 1 + .../dist/xml-http-request-upload.d.ts | 12 + .../dist/xml-http-request-upload.js | 78 + .../dist/xml-http-request-upload.js.map | 1 + .../xhr2-cookies/dist/xml-http-request.d.ts | 102 + .../xhr2-cookies/dist/xml-http-request.js | 448 + .../xhr2-cookies/dist/xml-http-request.js.map | 1 + @tornado/xhr2-cookies/errors.ts | 4 + @tornado/xhr2-cookies/index.ts | 2 + @tornado/xhr2-cookies/package.json | 51 + @tornado/xhr2-cookies/progress-event.ts | 12 + @tornado/xhr2-cookies/test/cookies.spec.ts | 59 + .../xhr2-cookies/test/event-target.spec.ts | 101 + @tornado/xhr2-cookies/test/events.spec.ts | 249 + @tornado/xhr2-cookies/test/fixtures/hello.png | Bin 0 -> 119 bytes @tornado/xhr2-cookies/test/headers.spec.ts | 189 + .../test/helpers/certificates/certificate.ts | 50 + .../test/helpers/certificates/generate.sh | 5 + .../helpers/certificates/localhost.cert.pem | 21 + .../helpers/certificates/localhost.key.pem | 27 + .../helpers/certificates/localhost.key2.pem | 28 + @tornado/xhr2-cookies/test/helpers/png.ts | 8 + @tornado/xhr2-cookies/test/helpers/server.ts | 228 + @tornado/xhr2-cookies/test/nodejs-set.spec.ts | 120 + @tornado/xhr2-cookies/test/redirect.spec.ts | 120 + .../xhr2-cookies/test/response-type.spec.ts | 134 + .../xhr2-cookies/test/response-url.spec.ts | 46 + @tornado/xhr2-cookies/test/send.spec.ts | 137 + @tornado/xhr2-cookies/test/status.spec.ts | 84 + @tornado/xhr2-cookies/test/tsconfig.json | 14 + @tornado/xhr2-cookies/test/xhr.spec.ts | 135 + @tornado/xhr2-cookies/tsconfig.json | 16 + @tornado/xhr2-cookies/tslint.json | 115 + @tornado/xhr2-cookies/wallaby.js | 27 + .../xml-http-request-event-target.ts | 49 + .../xhr2-cookies/xml-http-request-upload.ts | 57 + @tornado/xhr2-cookies/xml-http-request.ts | 471 + README.md | 3 + package.json | 14 + yarn.lock | 13657 ++++++++++++++++ 357 files changed, 72191 insertions(+) create mode 100644 .editorconfig create mode 100644 .env.example create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs create mode 100644 .yarn/sdks/integrations.yml create mode 100644 .yarnrc.yml create mode 100644 @tornado/circomlib/.gitignore create mode 100644 @tornado/circomlib/README.md create mode 100644 @tornado/circomlib/calcpedersenbases/calcpedersenbases.js create mode 100644 @tornado/circomlib/circuits/README.md create mode 100644 @tornado/circomlib/circuits/aliascheck.circom create mode 100644 @tornado/circomlib/circuits/babyjub.circom create mode 100644 @tornado/circomlib/circuits/binsub.circom create mode 100644 @tornado/circomlib/circuits/binsum.circom create mode 100644 @tornado/circomlib/circuits/bitify.circom create mode 100644 @tornado/circomlib/circuits/comparators.circom create mode 100644 @tornado/circomlib/circuits/compconstant.circom create mode 100644 @tornado/circomlib/circuits/eddsa.circom create mode 100644 @tornado/circomlib/circuits/eddsamimc.circom create mode 100644 @tornado/circomlib/circuits/eddsamimcsponge.circom create mode 100644 @tornado/circomlib/circuits/eddsaposeidon.circom create mode 100644 @tornado/circomlib/circuits/escalarmul.circom create mode 100644 @tornado/circomlib/circuits/escalarmulany.circom create mode 100644 @tornado/circomlib/circuits/escalarmulfix.circom create mode 100644 @tornado/circomlib/circuits/escalarmulw4table.circom create mode 100644 @tornado/circomlib/circuits/gates.circom create mode 100644 @tornado/circomlib/circuits/mimc.circom create mode 100644 @tornado/circomlib/circuits/mimcsponge.circom create mode 100644 @tornado/circomlib/circuits/montgomery.circom create mode 100644 @tornado/circomlib/circuits/multiplexer.circom create mode 100644 @tornado/circomlib/circuits/mux1.circom create mode 100644 @tornado/circomlib/circuits/mux2.circom create mode 100644 @tornado/circomlib/circuits/mux3.circom create mode 100644 @tornado/circomlib/circuits/mux4.circom create mode 100644 @tornado/circomlib/circuits/pedersen.circom create mode 100644 @tornado/circomlib/circuits/pedersen_old.circom create mode 100644 @tornado/circomlib/circuits/pointbits.circom create mode 100644 @tornado/circomlib/circuits/poseidon.circom create mode 100644 @tornado/circomlib/circuits/sha256/ch.circom create mode 100644 @tornado/circomlib/circuits/sha256/constants.circom create mode 100644 @tornado/circomlib/circuits/sha256/main.circom create mode 100644 @tornado/circomlib/circuits/sha256/maj.circom create mode 100644 @tornado/circomlib/circuits/sha256/rotate.circom create mode 100644 @tornado/circomlib/circuits/sha256/sha256.circom create mode 100644 @tornado/circomlib/circuits/sha256/sha256_2.circom create mode 100644 @tornado/circomlib/circuits/sha256/sha256compression.circom create mode 100644 @tornado/circomlib/circuits/sha256/shift.circom create mode 100644 @tornado/circomlib/circuits/sha256/sigma.circom create mode 100644 @tornado/circomlib/circuits/sha256/sigmaplus.circom create mode 100644 @tornado/circomlib/circuits/sha256/t1.circom create mode 100644 @tornado/circomlib/circuits/sha256/t2.circom create mode 100644 @tornado/circomlib/circuits/sha256/xor3.circom create mode 100644 @tornado/circomlib/circuits/sign.circom create mode 100644 @tornado/circomlib/circuits/smt/smthash_mimc.circom create mode 100644 @tornado/circomlib/circuits/smt/smthash_poseidon.circom create mode 100644 @tornado/circomlib/circuits/smt/smtlevins.circom create mode 100644 @tornado/circomlib/circuits/smt/smtprocessor.circom create mode 100644 @tornado/circomlib/circuits/smt/smtprocessorlevel.circom create mode 100644 @tornado/circomlib/circuits/smt/smtprocessorsm.circom create mode 100644 @tornado/circomlib/circuits/smt/smtverifier.circom create mode 100644 @tornado/circomlib/circuits/smt/smtverifierlevel.circom create mode 100644 @tornado/circomlib/circuits/smt/smtverifiersm.circom create mode 100644 @tornado/circomlib/circuits/switcher.circom create mode 100644 @tornado/circomlib/doc/root_transfer.monopic create mode 100644 @tornado/circomlib/doc/smt_diagram_0.monopic create mode 100644 @tornado/circomlib/doc/smt_diagram_1.monopic create mode 100644 @tornado/circomlib/doc/smt_hash.monopic create mode 100644 @tornado/circomlib/doc/smt_levins.monopic create mode 100644 @tornado/circomlib/doc/smt_sm.monopic create mode 100644 @tornado/circomlib/doc/smt_verifier_sm.monopic create mode 100644 @tornado/circomlib/doc/voting.monopic create mode 100644 @tornado/circomlib/doc/window.monopic create mode 100644 @tornado/circomlib/doc/window_chain.monopic create mode 100644 @tornado/circomlib/index.d.ts create mode 100644 @tornado/circomlib/index.d.ts.map create mode 100644 @tornado/circomlib/index.js create mode 100644 @tornado/circomlib/package.json create mode 100644 @tornado/circomlib/src/babyjub.js create mode 100644 @tornado/circomlib/src/eddsa.js create mode 100644 @tornado/circomlib/src/evmasm.js create mode 100644 @tornado/circomlib/src/g2_gencontract.js create mode 100644 @tornado/circomlib/src/mimc7.js create mode 100644 @tornado/circomlib/src/mimc_gencontract.js create mode 100644 @tornado/circomlib/src/mimc_print_iv.js create mode 100644 @tornado/circomlib/src/mimc_printconstants.js create mode 100644 @tornado/circomlib/src/mimc_printcontract.js create mode 100644 @tornado/circomlib/src/mimcsponge.js create mode 100644 @tornado/circomlib/src/mimcsponge_gencontract.js create mode 100644 @tornado/circomlib/src/mimcsponge_printconstants.js create mode 100644 @tornado/circomlib/src/mimcsponge_printcontract.js create mode 100644 @tornado/circomlib/src/pedersenHash.js create mode 100644 @tornado/circomlib/src/pedersen_printbases.js create mode 100644 @tornado/circomlib/src/poseidon.js create mode 100644 @tornado/circomlib/src/poseidon_gencontract.js create mode 100644 @tornado/circomlib/src/poseidon_printconstants.js create mode 100644 @tornado/circomlib/src/poseidon_printcontract.js create mode 100644 @tornado/circomlib/src/poseidon_printmatrix.js create mode 100644 @tornado/circomlib/src/smt.js create mode 100644 @tornado/circomlib/src/smt_hashes_mimc.js create mode 100644 @tornado/circomlib/src/smt_hashes_poseidon.js create mode 100644 @tornado/circomlib/src/smt_memdb.js create mode 100644 @tornado/circomlib/test/aliascheck.js create mode 100644 @tornado/circomlib/test/aliascheckbabyjub.js create mode 100644 @tornado/circomlib/test/babyjub.js create mode 100644 @tornado/circomlib/test/babyjub_js.js create mode 100644 @tornado/circomlib/test/binsub.js create mode 100644 @tornado/circomlib/test/binsum.js create mode 100644 @tornado/circomlib/test/circuits/aliascheck_test.circom create mode 100644 @tornado/circomlib/test/circuits/aliascheckbabyjub_test.circom create mode 100644 @tornado/circomlib/test/circuits/babyadd_tester.circom create mode 100644 @tornado/circomlib/test/circuits/babycheck_test.circom create mode 100644 @tornado/circomlib/test/circuits/babypbk_test.circom create mode 100644 @tornado/circomlib/test/circuits/binsub_test.circom create mode 100644 @tornado/circomlib/test/circuits/constants_test.circom create mode 100644 @tornado/circomlib/test/circuits/eddsa_test.circom create mode 100644 @tornado/circomlib/test/circuits/eddsamimc_test.circom create mode 100644 @tornado/circomlib/test/circuits/eddsamimcsponge_test.circom create mode 100644 @tornado/circomlib/test/circuits/eddsaposeidon_test.circom create mode 100644 @tornado/circomlib/test/circuits/edwards2montgomery.circom create mode 100644 @tornado/circomlib/test/circuits/escalarmul_min_test.circom create mode 100644 @tornado/circomlib/test/circuits/escalarmul_test.circom create mode 100644 @tornado/circomlib/test/circuits/escalarmul_test_min.circom create mode 100644 @tornado/circomlib/test/circuits/escalarmulany_test.circom create mode 100644 @tornado/circomlib/test/circuits/escalarmulfix_test.circom create mode 100644 @tornado/circomlib/test/circuits/escalarmulw4table.circom create mode 100644 @tornado/circomlib/test/circuits/escalarmulw4table_test.circom create mode 100644 @tornado/circomlib/test/circuits/escalarmulw4table_test3.circom create mode 100644 @tornado/circomlib/test/circuits/greatereqthan.circom create mode 100644 @tornado/circomlib/test/circuits/greaterthan.circom create mode 100644 @tornado/circomlib/test/circuits/isequal.circom create mode 100644 @tornado/circomlib/test/circuits/iszero.circom create mode 100644 @tornado/circomlib/test/circuits/lesseqthan.circom create mode 100644 @tornado/circomlib/test/circuits/lessthan.circom create mode 100644 @tornado/circomlib/test/circuits/mimc_sponge_hash_test.circom create mode 100644 @tornado/circomlib/test/circuits/mimc_sponge_test.circom create mode 100644 @tornado/circomlib/test/circuits/mimc_test.circom create mode 100644 @tornado/circomlib/test/circuits/montgomery2edwards.circom create mode 100644 @tornado/circomlib/test/circuits/montgomeryadd.circom create mode 100644 @tornado/circomlib/test/circuits/montgomerydouble.circom create mode 100644 @tornado/circomlib/test/circuits/mux1_1.circom create mode 100644 @tornado/circomlib/test/circuits/mux2_1.circom create mode 100644 @tornado/circomlib/test/circuits/mux3_1.circom create mode 100644 @tornado/circomlib/test/circuits/mux4_1.circom create mode 100644 @tornado/circomlib/test/circuits/pedersen2_test.circom create mode 100644 @tornado/circomlib/test/circuits/pedersen_test.circom create mode 100644 @tornado/circomlib/test/circuits/pointbits_loopback.circom create mode 100644 @tornado/circomlib/test/circuits/poseidon_test.circom create mode 100644 @tornado/circomlib/test/circuits/sha256_2_test.circom create mode 100644 @tornado/circomlib/test/circuits/sha256_test448.circom create mode 100644 @tornado/circomlib/test/circuits/sha256_test512.circom create mode 100644 @tornado/circomlib/test/circuits/sign_test.circom create mode 100644 @tornado/circomlib/test/circuits/smtprocessor10_test.circom create mode 100644 @tornado/circomlib/test/circuits/smtverifier10_test.circom create mode 100644 @tornado/circomlib/test/circuits/sum_test.circom create mode 100644 @tornado/circomlib/test/comparators.js create mode 100644 @tornado/circomlib/test/eddsa.js create mode 100644 @tornado/circomlib/test/eddsa_js.js create mode 100644 @tornado/circomlib/test/eddsamimc.js create mode 100644 @tornado/circomlib/test/eddsamimcsponge.js create mode 100644 @tornado/circomlib/test/eddsaposeidon.js create mode 100644 @tornado/circomlib/test/escalarmul.js create mode 100644 @tornado/circomlib/test/escalarmulany.js create mode 100644 @tornado/circomlib/test/escalarmulfix.js create mode 100644 @tornado/circomlib/test/helpers/printsignal.js create mode 100644 @tornado/circomlib/test/helpers/sha256.js create mode 100644 @tornado/circomlib/test/mimccircuit.js create mode 100644 @tornado/circomlib/test/mimccontract.js create mode 100644 @tornado/circomlib/test/mimcspongecircuit.js create mode 100644 @tornado/circomlib/test/mimcspongecontract.js create mode 100644 @tornado/circomlib/test/montgomery.js create mode 100644 @tornado/circomlib/test/multiplexer.js create mode 100644 @tornado/circomlib/test/pedersen.js create mode 100644 @tornado/circomlib/test/pedersen2.js create mode 100644 @tornado/circomlib/test/point2bits.js create mode 100644 @tornado/circomlib/test/poseidoncircuit.js create mode 100644 @tornado/circomlib/test/poseidoncontract.js create mode 100644 @tornado/circomlib/test/rawsmt3.circom create mode 100644 @tornado/circomlib/test/sha256.js create mode 100644 @tornado/circomlib/test/sign.js create mode 100644 @tornado/circomlib/test/smtjs.js create mode 100644 @tornado/circomlib/test/smtprocessor.js create mode 100644 @tornado/circomlib/test/smtverifier.js create mode 100644 @tornado/circomlib/test/smtverifier_adria.js create mode 100644 @tornado/circomlib/tsconfig.json create mode 100644 @tornado/fixed-merkle-tree/.gitignore create mode 100644 @tornado/fixed-merkle-tree/README.md create mode 100644 @tornado/fixed-merkle-tree/index.d.ts create mode 100644 @tornado/fixed-merkle-tree/index.d.ts.map create mode 100644 @tornado/fixed-merkle-tree/index.js create mode 100644 @tornado/fixed-merkle-tree/package-lock.json create mode 100644 @tornado/fixed-merkle-tree/package.json create mode 100644 @tornado/fixed-merkle-tree/src/merkleTree.js create mode 100644 @tornado/fixed-merkle-tree/src/mimc.js create mode 100644 @tornado/fixed-merkle-tree/tsconfig.json create mode 100644 @tornado/snarkjs/.eslintrc.js create mode 100644 @tornado/snarkjs/.gitignore create mode 100644 @tornado/snarkjs/COPYING create mode 100644 @tornado/snarkjs/README.md create mode 100755 @tornado/snarkjs/cli.js create mode 100644 @tornado/snarkjs/index.d.ts create mode 100644 @tornado/snarkjs/index.d.ts.map create mode 100644 @tornado/snarkjs/index.js create mode 100644 @tornado/snarkjs/package-lock.json create mode 100644 @tornado/snarkjs/package.json create mode 100644 @tornado/snarkjs/src/bigint.js create mode 100644 @tornado/snarkjs/src/bn128.js create mode 100644 @tornado/snarkjs/src/calculateWitness.js create mode 100644 @tornado/snarkjs/src/circuit.js create mode 100644 @tornado/snarkjs/src/f2field.js create mode 100644 @tornado/snarkjs/src/f3field.js create mode 100644 @tornado/snarkjs/src/futils.js create mode 100644 @tornado/snarkjs/src/gcurve.js create mode 100644 @tornado/snarkjs/src/polfield.js create mode 100644 @tornado/snarkjs/src/prover_groth.js create mode 100644 @tornado/snarkjs/src/prover_kimleeoh.js create mode 100644 @tornado/snarkjs/src/prover_original.js create mode 100644 @tornado/snarkjs/src/ratfield.js create mode 100644 @tornado/snarkjs/src/setup_groth.js create mode 100644 @tornado/snarkjs/src/setup_kimleeoh.js create mode 100644 @tornado/snarkjs/src/setup_original.js create mode 100644 @tornado/snarkjs/src/stringifybigint.js create mode 100644 @tornado/snarkjs/src/verifier.js create mode 100644 @tornado/snarkjs/src/verifier_groth.js create mode 100644 @tornado/snarkjs/src/verifier_kimleeoh.js create mode 100644 @tornado/snarkjs/src/verifier_original.js create mode 100644 @tornado/snarkjs/src/zqfield.js create mode 100644 @tornado/snarkjs/templates/verifier_groth.sol create mode 100644 @tornado/snarkjs/templates/verifier_kimleeoh.sol create mode 100644 @tornado/snarkjs/templates/verifier_original.sol create mode 100644 @tornado/snarkjs/test/algebra.js create mode 100644 @tornado/snarkjs/test/calculatewitness.js create mode 100644 @tornado/snarkjs/test/circuit/sum.json create mode 100644 @tornado/snarkjs/test/pols.js create mode 100644 @tornado/snarkjs/test/ratzqfield.js create mode 100644 @tornado/snarkjs/test/zksnark.js create mode 100644 @tornado/snarkjs/test/zksnark_groth.js create mode 100644 @tornado/snarkjs/test/zksnark_kimleeoh.js create mode 100644 @tornado/snarkjs/tsconfig.json create mode 100644 @tornado/web3-providers-http/.gitignore create mode 100644 @tornado/web3-providers-http/README.md create mode 100644 @tornado/web3-providers-http/config create mode 100644 @tornado/web3-providers-http/lib/index.js create mode 100644 @tornado/web3-providers-http/package-lock.json create mode 100644 @tornado/web3-providers-http/package.json create mode 100644 @tornado/web3-providers-http/src/index.js create mode 100644 @tornado/web3-providers-http/tsconfig.json create mode 100644 @tornado/web3-providers-http/types/index.d.ts create mode 100644 @tornado/web3-providers-http/types/tests/web3-provider-http-tests.ts create mode 100644 @tornado/web3-providers-http/types/tsconfig.json create mode 100644 @tornado/web3-providers-http/types/tslint.json create mode 100644 @tornado/websnark/.eslintrc.js create mode 100644 @tornado/websnark/.gitignore create mode 100644 @tornado/websnark/COPYING create mode 100644 @tornado/websnark/README.md create mode 100644 @tornado/websnark/TODO create mode 100644 @tornado/websnark/build/groth16_wasm.js create mode 100644 @tornado/websnark/build/websnark.js create mode 100644 @tornado/websnark/index.d.ts create mode 100644 @tornado/websnark/index.d.ts.map create mode 100644 @tornado/websnark/index.js create mode 100644 @tornado/websnark/main.js create mode 100644 @tornado/websnark/package-lock.json create mode 100644 @tornado/websnark/package.json create mode 100644 @tornado/websnark/src/bn128.js create mode 100644 @tornado/websnark/src/build_curve.js create mode 100644 @tornado/websnark/src/build_f1.js create mode 100644 @tornado/websnark/src/build_f1m.js create mode 100644 @tornado/websnark/src/build_f2m.js create mode 100644 @tornado/websnark/src/build_fft.js create mode 100644 @tornado/websnark/src/build_int.js create mode 100644 @tornado/websnark/src/build_mem.js create mode 100644 @tornado/websnark/src/build_mulacc.js create mode 100644 @tornado/websnark/src/build_multiexp.js create mode 100644 @tornado/websnark/src/build_pol.js create mode 100644 @tornado/websnark/src/build_test.js create mode 100644 @tornado/websnark/src/build_testf1.js create mode 100644 @tornado/websnark/src/build_testg1.js create mode 100644 @tornado/websnark/src/build_timesscalar.js create mode 100644 @tornado/websnark/src/build_tomcook.js create mode 100644 @tornado/websnark/src/build_tomcook.js.old create mode 100644 @tornado/websnark/src/f1.js create mode 100644 @tornado/websnark/src/groth16.js create mode 100644 @tornado/websnark/src/protoboard.js create mode 100644 @tornado/websnark/src/utils.js create mode 100644 @tornado/websnark/test/bn128.js create mode 100644 @tornado/websnark/test/data/proving_key.bin create mode 100644 @tornado/websnark/test/data/public.json create mode 100644 @tornado/websnark/test/data/verification_key.json create mode 100644 @tornado/websnark/test/data/witness.bin create mode 100644 @tornado/websnark/test/f1.js create mode 100644 @tornado/websnark/test/fft.js create mode 100644 @tornado/websnark/test/groth16.js create mode 100644 @tornado/websnark/test/helpers/helpers.js create mode 100644 @tornado/websnark/test/int.js create mode 100644 @tornado/websnark/test/tomcook.js create mode 100644 @tornado/websnark/tools/buildpkey.js create mode 100644 @tornado/websnark/tools/buildwasm.js create mode 100644 @tornado/websnark/tools/buildwitness.js create mode 100644 @tornado/websnark/tools/stringifybigint.js create mode 100644 @tornado/websnark/tsconfig.json create mode 100644 @tornado/xhr2-cookies/.gitignore create mode 100644 @tornado/xhr2-cookies/.npmignore create mode 100644 @tornado/xhr2-cookies/README.md create mode 100644 @tornado/xhr2-cookies/dist/errors.d.ts create mode 100644 @tornado/xhr2-cookies/dist/errors.js create mode 100644 @tornado/xhr2-cookies/dist/errors.js.map create mode 100644 @tornado/xhr2-cookies/dist/index.d.ts create mode 100644 @tornado/xhr2-cookies/dist/index.js create mode 100644 @tornado/xhr2-cookies/dist/index.js.map create mode 100644 @tornado/xhr2-cookies/dist/progress-event.d.ts create mode 100644 @tornado/xhr2-cookies/dist/progress-event.js create mode 100644 @tornado/xhr2-cookies/dist/progress-event.js.map create mode 100644 @tornado/xhr2-cookies/dist/xml-http-request-event-target.d.ts create mode 100644 @tornado/xhr2-cookies/dist/xml-http-request-event-target.js create mode 100644 @tornado/xhr2-cookies/dist/xml-http-request-event-target.js.map create mode 100644 @tornado/xhr2-cookies/dist/xml-http-request-upload.d.ts create mode 100644 @tornado/xhr2-cookies/dist/xml-http-request-upload.js create mode 100644 @tornado/xhr2-cookies/dist/xml-http-request-upload.js.map create mode 100644 @tornado/xhr2-cookies/dist/xml-http-request.d.ts create mode 100644 @tornado/xhr2-cookies/dist/xml-http-request.js create mode 100644 @tornado/xhr2-cookies/dist/xml-http-request.js.map create mode 100644 @tornado/xhr2-cookies/errors.ts create mode 100644 @tornado/xhr2-cookies/index.ts create mode 100644 @tornado/xhr2-cookies/package.json create mode 100644 @tornado/xhr2-cookies/progress-event.ts create mode 100644 @tornado/xhr2-cookies/test/cookies.spec.ts create mode 100644 @tornado/xhr2-cookies/test/event-target.spec.ts create mode 100644 @tornado/xhr2-cookies/test/events.spec.ts create mode 100644 @tornado/xhr2-cookies/test/fixtures/hello.png create mode 100644 @tornado/xhr2-cookies/test/headers.spec.ts create mode 100644 @tornado/xhr2-cookies/test/helpers/certificates/certificate.ts create mode 100644 @tornado/xhr2-cookies/test/helpers/certificates/generate.sh create mode 100644 @tornado/xhr2-cookies/test/helpers/certificates/localhost.cert.pem create mode 100644 @tornado/xhr2-cookies/test/helpers/certificates/localhost.key.pem create mode 100644 @tornado/xhr2-cookies/test/helpers/certificates/localhost.key2.pem create mode 100644 @tornado/xhr2-cookies/test/helpers/png.ts create mode 100644 @tornado/xhr2-cookies/test/helpers/server.ts create mode 100644 @tornado/xhr2-cookies/test/nodejs-set.spec.ts create mode 100644 @tornado/xhr2-cookies/test/redirect.spec.ts create mode 100644 @tornado/xhr2-cookies/test/response-type.spec.ts create mode 100644 @tornado/xhr2-cookies/test/response-url.spec.ts create mode 100644 @tornado/xhr2-cookies/test/send.spec.ts create mode 100644 @tornado/xhr2-cookies/test/status.spec.ts create mode 100644 @tornado/xhr2-cookies/test/tsconfig.json create mode 100644 @tornado/xhr2-cookies/test/xhr.spec.ts create mode 100644 @tornado/xhr2-cookies/tsconfig.json create mode 100644 @tornado/xhr2-cookies/tslint.json create mode 100644 @tornado/xhr2-cookies/wallaby.js create mode 100644 @tornado/xhr2-cookies/xml-http-request-event-target.ts create mode 100644 @tornado/xhr2-cookies/xml-http-request-upload.ts create mode 100644 @tornado/xhr2-cookies/xml-http-request.ts create mode 100644 README.md create mode 100644 package.json create mode 100644 yarn.lock diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1ed453a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true + +[*.{js,json,yml}] +charset = utf-8 +indent_style = space +indent_size = 2 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..517cbd3 --- /dev/null +++ b/.env.example @@ -0,0 +1 @@ +export GITEA_AUTH_TOKEN= \ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..af3ad12 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +/.yarn/** linguist-vendored +/.yarn/releases/* binary +/.yarn/plugins/**/* binary +/.pnp.* binary linguist-generated diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..24e7279 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +# NOT using zero installs + +.pnp.* +.yarn/* +!.yarn/patches +!.yarn/plugins +!.yarn/releases +!.yarn/sdks +!.yarn/versions + +# Environment + +.env + +# node modules + +node_modules \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..06dd640 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "arcanis.vscode-zipfs" + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..2dfa944 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "typescript.tsdk": "node_modules/typescript/lib", + "search.exclude": { + "**/.yarn": true, + "**/.pnp.*": true + } +} diff --git a/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs b/.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs new file mode 100644 index 0000000000000000000000000000000000000000..4e89c7c352cb7424079996269bb3a742557be273 GIT binary patch literal 51557 zcmd75`&-*a7B~L$+rPqiS!%_?K+^4Q
JK<`u{I{_vtUuYzhfml7+dPM4 u(H3_ofX?e$6v&;1wTn_v#=#vpK
zaSg|Xf&-CiK%m!j%@1*&{&;vkfCsJn0H@432s%V|$~FChCBvU_-NzTa#E+$H_x)nR-8{8g)kF`r@7_1tJLh_^Yx?yY8T#MMuiuZ}
zw9wk_!8_m^p+JFrk2BFccnyfQ+Q3Z