├── .eslintrc.js ├── .github └── workflows │ └── main.yml ├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── src ├── balance-updater.circom ├── compute-fee.circom ├── decode-tx.circom ├── fee-accumulator.circom ├── fee-tx.circom ├── hash-inputs.circom ├── lib │ ├── decode-float.circom │ ├── hash-state.circom │ ├── mux256.circom │ └── utils-bjj.circom ├── rollup-main.circom ├── rollup-tx-states.circom ├── rollup-tx.circom ├── rq-tx-verifier.circom └── withdraw.circom ├── test ├── balance-updater.test.js ├── compute-fee.test.js ├── decode-tx.test.js ├── fee-accumulator.test.js ├── fee-tx.test.js ├── hash-inputs.test.js ├── helpers │ └── helpers.js ├── lib │ ├── decode-float.test.js │ ├── hash-state.test.js │ ├── mux256.test.js │ └── utils-bjj.test.js ├── rollup-main-L1.test.js ├── rollup-main.test.js ├── rollup-tx-states.test.js ├── rollup-tx.test.js ├── rq-tx-verifier.test.js └── withdraw.test.js └── tools ├── .gitignore ├── README.md ├── build-circuit.js ├── circuit-constraints.js ├── generate-input.js └── helpers ├── actions.js └── gen-inputs-utils.js /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/package.json -------------------------------------------------------------------------------- /src/balance-updater.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/balance-updater.circom -------------------------------------------------------------------------------- /src/compute-fee.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/compute-fee.circom -------------------------------------------------------------------------------- /src/decode-tx.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/decode-tx.circom -------------------------------------------------------------------------------- /src/fee-accumulator.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/fee-accumulator.circom -------------------------------------------------------------------------------- /src/fee-tx.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/fee-tx.circom -------------------------------------------------------------------------------- /src/hash-inputs.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/hash-inputs.circom -------------------------------------------------------------------------------- /src/lib/decode-float.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/lib/decode-float.circom -------------------------------------------------------------------------------- /src/lib/hash-state.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/lib/hash-state.circom -------------------------------------------------------------------------------- /src/lib/mux256.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/lib/mux256.circom -------------------------------------------------------------------------------- /src/lib/utils-bjj.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/lib/utils-bjj.circom -------------------------------------------------------------------------------- /src/rollup-main.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/rollup-main.circom -------------------------------------------------------------------------------- /src/rollup-tx-states.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/rollup-tx-states.circom -------------------------------------------------------------------------------- /src/rollup-tx.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/rollup-tx.circom -------------------------------------------------------------------------------- /src/rq-tx-verifier.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/rq-tx-verifier.circom -------------------------------------------------------------------------------- /src/withdraw.circom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/src/withdraw.circom -------------------------------------------------------------------------------- /test/balance-updater.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/balance-updater.test.js -------------------------------------------------------------------------------- /test/compute-fee.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/compute-fee.test.js -------------------------------------------------------------------------------- /test/decode-tx.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/decode-tx.test.js -------------------------------------------------------------------------------- /test/fee-accumulator.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/fee-accumulator.test.js -------------------------------------------------------------------------------- /test/fee-tx.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/fee-tx.test.js -------------------------------------------------------------------------------- /test/hash-inputs.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/hash-inputs.test.js -------------------------------------------------------------------------------- /test/helpers/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/helpers/helpers.js -------------------------------------------------------------------------------- /test/lib/decode-float.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/lib/decode-float.test.js -------------------------------------------------------------------------------- /test/lib/hash-state.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/lib/hash-state.test.js -------------------------------------------------------------------------------- /test/lib/mux256.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/lib/mux256.test.js -------------------------------------------------------------------------------- /test/lib/utils-bjj.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/lib/utils-bjj.test.js -------------------------------------------------------------------------------- /test/rollup-main-L1.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/rollup-main-L1.test.js -------------------------------------------------------------------------------- /test/rollup-main.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/rollup-main.test.js -------------------------------------------------------------------------------- /test/rollup-tx-states.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/rollup-tx-states.test.js -------------------------------------------------------------------------------- /test/rollup-tx.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/rollup-tx.test.js -------------------------------------------------------------------------------- /test/rq-tx-verifier.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/rq-tx-verifier.test.js -------------------------------------------------------------------------------- /test/withdraw.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/test/withdraw.test.js -------------------------------------------------------------------------------- /tools/.gitignore: -------------------------------------------------------------------------------- 1 | rollup-* 2 | config.json 3 | inputs-* -------------------------------------------------------------------------------- /tools/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/tools/README.md -------------------------------------------------------------------------------- /tools/build-circuit.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/tools/build-circuit.js -------------------------------------------------------------------------------- /tools/circuit-constraints.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/tools/circuit-constraints.js -------------------------------------------------------------------------------- /tools/generate-input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/tools/generate-input.js -------------------------------------------------------------------------------- /tools/helpers/actions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/tools/helpers/actions.js -------------------------------------------------------------------------------- /tools/helpers/gen-inputs-utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hermeznetwork/circuits/HEAD/tools/helpers/gen-inputs-utils.js --------------------------------------------------------------------------------