├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── README.md ├── rust-toolchain ├── src ├── adaptor │ ├── bls381adaptor │ ├── bn256adaptor.rs │ ├── hashadaptor.rs │ ├── keccakadaptor.rs │ ├── merkleadaptor.rs │ ├── mod.rs │ └── msmadaptor.rs ├── circuits │ ├── anemoi.rs │ ├── babyjub.rs │ ├── bits_arith.rs │ ├── bls │ ├── bn256.rs │ ├── host.rs │ ├── keccak256.rs │ ├── merkle.rs │ ├── mod.rs │ ├── poseidon.rs │ └── range.rs ├── host │ ├── bls.rs │ ├── bn256.rs │ ├── cache.rs │ ├── datahash.rs │ ├── db.rs │ ├── jubjub.rs │ ├── keccak256.rs │ ├── merkle.rs │ ├── mod.rs │ ├── mongomerkle.rs │ └── poseidon.rs ├── lib.rs ├── main.rs ├── migrate │ └── migrate_from_mongo_to_rocksdb.rs ├── proof.rs ├── scripts │ └── kvpair_db_upgrade │ │ ├── README │ │ ├── db_upgrade.ts │ │ ├── package-lock.json │ │ ├── package.json │ │ └── tsconfig.json └── utils │ ├── macros.rs │ └── mod.rs ├── test.sh ├── test_bn254.sh ├── test_jubjub.sh ├── test_keccak.sh ├── test_merkle.sh └── test_poseidon.sh /.gitignore: -------------------------------------------------------------------------------- 1 | target/ 2 | .idea/ 3 | test_db -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/Cargo.toml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/README.md -------------------------------------------------------------------------------- /rust-toolchain: -------------------------------------------------------------------------------- 1 | nightly-2023-06-01 2 | -------------------------------------------------------------------------------- /src/adaptor/bls381adaptor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/adaptor/bls381adaptor -------------------------------------------------------------------------------- /src/adaptor/bn256adaptor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/adaptor/bn256adaptor.rs -------------------------------------------------------------------------------- /src/adaptor/hashadaptor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/adaptor/hashadaptor.rs -------------------------------------------------------------------------------- /src/adaptor/keccakadaptor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/adaptor/keccakadaptor.rs -------------------------------------------------------------------------------- /src/adaptor/merkleadaptor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/adaptor/merkleadaptor.rs -------------------------------------------------------------------------------- /src/adaptor/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/adaptor/mod.rs -------------------------------------------------------------------------------- /src/adaptor/msmadaptor.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/adaptor/msmadaptor.rs -------------------------------------------------------------------------------- /src/circuits/anemoi.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/anemoi.rs -------------------------------------------------------------------------------- /src/circuits/babyjub.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/babyjub.rs -------------------------------------------------------------------------------- /src/circuits/bits_arith.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/bits_arith.rs -------------------------------------------------------------------------------- /src/circuits/bls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/bls -------------------------------------------------------------------------------- /src/circuits/bn256.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/bn256.rs -------------------------------------------------------------------------------- /src/circuits/host.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/host.rs -------------------------------------------------------------------------------- /src/circuits/keccak256.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/keccak256.rs -------------------------------------------------------------------------------- /src/circuits/merkle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/merkle.rs -------------------------------------------------------------------------------- /src/circuits/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/mod.rs -------------------------------------------------------------------------------- /src/circuits/poseidon.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/poseidon.rs -------------------------------------------------------------------------------- /src/circuits/range.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/circuits/range.rs -------------------------------------------------------------------------------- /src/host/bls.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/bls.rs -------------------------------------------------------------------------------- /src/host/bn256.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/bn256.rs -------------------------------------------------------------------------------- /src/host/cache.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/cache.rs -------------------------------------------------------------------------------- /src/host/datahash.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/datahash.rs -------------------------------------------------------------------------------- /src/host/db.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/db.rs -------------------------------------------------------------------------------- /src/host/jubjub.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/jubjub.rs -------------------------------------------------------------------------------- /src/host/keccak256.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/keccak256.rs -------------------------------------------------------------------------------- /src/host/merkle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/merkle.rs -------------------------------------------------------------------------------- /src/host/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/mod.rs -------------------------------------------------------------------------------- /src/host/mongomerkle.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/mongomerkle.rs -------------------------------------------------------------------------------- /src/host/poseidon.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/host/poseidon.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/main.rs -------------------------------------------------------------------------------- /src/migrate/migrate_from_mongo_to_rocksdb.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/migrate/migrate_from_mongo_to_rocksdb.rs -------------------------------------------------------------------------------- /src/proof.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/proof.rs -------------------------------------------------------------------------------- /src/scripts/kvpair_db_upgrade/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/scripts/kvpair_db_upgrade/README -------------------------------------------------------------------------------- /src/scripts/kvpair_db_upgrade/db_upgrade.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/scripts/kvpair_db_upgrade/db_upgrade.ts -------------------------------------------------------------------------------- /src/scripts/kvpair_db_upgrade/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/scripts/kvpair_db_upgrade/package-lock.json -------------------------------------------------------------------------------- /src/scripts/kvpair_db_upgrade/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/scripts/kvpair_db_upgrade/package.json -------------------------------------------------------------------------------- /src/scripts/kvpair_db_upgrade/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/scripts/kvpair_db_upgrade/tsconfig.json -------------------------------------------------------------------------------- /src/utils/macros.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/utils/macros.rs -------------------------------------------------------------------------------- /src/utils/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/src/utils/mod.rs -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/test.sh -------------------------------------------------------------------------------- /test_bn254.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/test_bn254.sh -------------------------------------------------------------------------------- /test_jubjub.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/test_jubjub.sh -------------------------------------------------------------------------------- /test_keccak.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/test_keccak.sh -------------------------------------------------------------------------------- /test_merkle.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/test_merkle.sh -------------------------------------------------------------------------------- /test_poseidon.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DelphinusLab/zkWasm-host-circuits/HEAD/test_poseidon.sh --------------------------------------------------------------------------------