Create Proof (r1cs)

Create Proof(r1cs)

GET https://api.zkcloud.io/proofs/create/r1cs

This endpoint allows you to generate a proof posting r1cs circom.

Headers

NameTypeDescription

Authorization*

String

Authentication Token.

Accept

String

The Accept request-header field can be used to specify certain media types which are acceptable for the response and versioning.

Request Body

NameTypeDescription

wasmCircom*

Object

Wasm circom file (multipart/form-data)

r1csCircom*

Object

R1cs circom file (multipart/form-data)

input*

Object

Input file (multipart/form-data)

protocol*

String

Protocol type (multipart/form-data)

{
  "id":"EA6h9bxo2tlknmM-hmYh-",
  "duration": 0,
  "protocol":"PLONK",
  "status":"CREATED",
  "proofFileUrl": null,
  "startDate": null
  "endDate": null
}

Example

curl -H "Authorization: Bearer <API_TOKEN>" -F 'wasmCircom=@./circuit.wasm' -F 'r1csCircom=@./circuit.r1cs' -F 'input=@./input.json' -F 'protocol=PLONK' http://api.zkcloud.io/proofs/create/r1cs

Last updated