You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.3 KiB

  1. # <h1 align="center"> ark-circom </h1>
  2. Arkworks bindings to Circom's R1CS, for Groth16 Proof and Witness generation in Rust.
  3. ![Github Actions](https://github.com/gakonst/ark-circom/workflows/Tests/badge.svg)
  4. ## Documentation
  5. Clone the repository and run `cd ark-circom/ && cargo doc --open`
  6. ## Add ark-circom to your repository
  7. ```toml
  8. [dependencies]
  9. ark-circom = { git = "https://github.com/gakonst/ark-circom-rs" }
  10. ```
  11. ## Running the tests
  12. Tests require the following installed:
  13. 1. [`solc`](https://solidity.readthedocs.io/en/latest/installing-solidity.html). We also recommend using [solc-select](https://github.com/crytic/solc-select) for more flexibility.
  14. 2. [`ganache-cli`](https://github.com/trufflesuite/ganache-cli#installation)
  15. ## Features
  16. - [x] Witness generation using Circom's WASM witness code
  17. - [x] ZKey parsing into Arkworks Proving Key over BN254
  18. - [x] Compatibility layer for Ethereum types, so that proofs can be used in Solidity verifiers
  19. - [x] Proof generations and verification using Arkworks
  20. - [ ] CLI for common operations
  21. ## Acknowledgements
  22. This library would not have been possibly without the great work done in:
  23. - [`zkutil`](https://github.com/poma/zkutil/)
  24. - [`snarkjs`](https://github.com/iden3/snarkjs/)
  25. Special shoutout to [Kobi Gurkan](https://github.com/kobigurk/) for all the help in parsing SnarkJS' ZKey file format.