load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") go_library( name = "prover", srcs = [ "circuits.go", "erc020_gen.go", "erc05725_gen.go", "keystore.go", "lazy_compile.go", "pedersen.go", "reexport.go", "service.go", "synth_runtime.go", "tally_decrypt_gen.go", "tally_decrypt_verify.go", "tally_gen.go", "tally_gen_256.go", "tally_gen_64.go", "tally_prove.go", "verify.go", "vote_gen.go", "vote_homomorphic_gen.go", "vote_homomorphic_verify.go", "witness_v3_assignment.go", ], importpath = "github.com/stackdump/bitwrap-io/prover", visibility = ["//visibility:public"], deps = [ "@com_github_consensys_gnark//backend", "@com_github_consensys_gnark//backend/groth16", "@com_github_consensys_gnark//backend/witness", "@com_github_consensys_gnark//frontend", "@com_github_consensys_gnark//std/algebra/native/twistededwards", "@com_github_consensys_gnark//std/hash/mimc", "@com_github_consensys_gnark_crypto//ecc", "@com_github_consensys_gnark_crypto//ecc/bn254/fr", "@com_github_consensys_gnark_crypto//ecc/bn254/fr/mimc", "@com_github_consensys_gnark_crypto//ecc/bn254/twistededwards", "@com_github_consensys_gnark_crypto//ecc/twistededwards", "@com_github_pflow_xyz_go_pflow//prover", "@com_github_rs_zerolog//log", "@org_golang_x_sync//errgroup", ], ) go_test( name = "prover_test", srcs = [ "cs_roundtrip_test.go", "hint_ids_test.go", "pedersen_jsparity_test.go", "pedersen_test.go", "prover_test.go", "public_input_order_test.go", "tally_decrypt_test.go", "tally_test.go", "v3_proof_layout_test.go", "vote_homomorphic_test.go", "wasm32_loadkeys_only_inner_test.go", "wasm32_loadkeys_only_test.go", "wasm_export_diag_test.go", "wasm_keys_native_load_test.go", "witness_v3_dumpfile_test.go", "witness_v3_parity_test.go", ], embed = [":prover"], deps = [ "@com_github_consensys_gnark//backend/groth16", "@com_github_consensys_gnark//constraint", "@com_github_consensys_gnark//constraint/solver", "@com_github_consensys_gnark//frontend", "@com_github_consensys_gnark//frontend/cs/r1cs", "@com_github_consensys_gnark//std/algebra/native/twistededwards", "@com_github_consensys_gnark//test", "@com_github_consensys_gnark_crypto//ecc", "@com_github_consensys_gnark_crypto//ecc/bn254/twistededwards", ], )