The Prover is a fork of Iden3's prover-server. It is a REST API Wrapper for go-rapidsnark
- Download the already published image containing the circuits and verification key (~50 GB)
docker pull limechain/wisp-prover:1.0
- Run the image
docker run -d -p 8000:8000 limechain/wisp-prover:1.0
Note
- The image contains
ssz2PoseidonandblsHeaderVerifycircuits - Hardware requirements are
256GB RAM,32-core CPUand1 TB SSD
- (Optional) Create / edit your config file. Defaults to
configs/dev.yaml. - Prepare compiled circuits, zkey and verification key.
- Option 1 (Development): Use
multiplier:mkdir ./circuits && cp -R .github/workflows/test-circuit/multiplier ./circuits/multiplier - Option 2: CRC circuits (
ssz2PoseidonandblsHeaderVerify):Hardware requirements arebash get-circuits.sh
256GB RAM,32-core CPUand1 TB SSD
- Option 1 (Development): Use
- Build the image
docker build -t prover-server . - Run Prover
If you want to use config, different from the default
docker run -it -p 8000:8000 prover-serverdevone you must pass it as an environmental variableCONFIG={config}
POST /api/v1/proof/generate
Content-Type: application/json
{
"circuit": "multiplier", // name of the requested circuit as specified in the config
"inputs": {...} // circuit specific inputs
}
- The code in this project is licensed under the GNU GPLv3 license
- Iden'3
prover-serveris part of the iden3 project copyright 2021 0KIMS association and published with GPL-3 license