An open API service indexing awesome lists of open source software.

https://github.com/alxkzmn/spartan-circom

Write Spartan circuits in Circom
https://github.com/alxkzmn/spartan-circom

circom spartan zero-knowledge zero-knowledge-proofs zk zk-snarks zkp zkproof zksnarks

Last synced: 11 months ago
JSON representation

Write Spartan circuits in Circom

Awesome Lists containing this project

README

          

# Spartan-Circom

Spartan is a zero-knowledge proof system using the R1CS arithmetization. See https://github.com/microsoft/Spartan for more information.

Circom is a popular DSL for writing ZK circuits that can be compiled into R1CS format. See https://docs.circom.io/ for more information.

This repository provides the tools to run Spartan using circuits written in Circom.

## Development

1. Install Circom with `curve25519` support

```shell
git clone https://github.com/DanTehrani/circom-secq
cd circom-secq && cargo build --release && cargo install --path circom
```

2. Build circuits

```shell
sh circuits/scripts/compile_circuit.sh
sh circuits/scripts/witgen.sh
```

## Credits

`circuit_reader` is adapted from https://github.com/personaelabs/spartan-ecdsa