Generate proofs with Pipelined API
Overview
Generating a Zero-Knowledge Proof (ZKP) is typically a multi-step cryptographic process where computational problems are translated into a set of verifiable mathematical statements.
The specifics vary depending on the type of proof (e.g. zk-SNARKs or zk-STARKs) and ZKP generation can involve the following:
- Define the statement or the claim you want to prove; and design a circuit program that represents the computation as a series of simple arithmetic equations. The programs are typically written in specialized languages like Circom or Noir
- Compile the circuit
- Run the trusted set up to generate the public proving key and verification key
- Compute the witness and generate the proof using the full set of public inputs, private witness values and proof key.
- The final step is for the verifier to check the proof and the output is a simple True or False
How Pipelined API works
Our team is currently working on a product called “Pipelined API” where users can directly make an API call on the JS frontend and generate the zero knowledge proof. This reduces the complexity of the steps above and allows users to seamlessly generate the zero knowledge proof without the backend setup and orchestration that’s required in step 4.
We intend for this to simplify onboarding for developers familiar with Typescript, Javascript, Next.js framework, but not yet comfortable with Rust and backend systems. Currently, our scope covers SP1 proof type and will expand on others later. All inputs passed from both proof types are mostly public and should minimize privacy concerns. Here's an outline of the steps a developer would take:
- Define the statement and design a circuit program
- Compile the circuit
- Run the trusted set up
- Integrate with Pipelined API, send the program to prove + inputs
Through Pipelined API, we connect with multiple prover networks and provide the best proving quote (taking into account latency and costs). Users won't need to run a backend to access these networks (diagram below) and we will also directly connect with ZKVerify for proof verification through the relayer.

Next Steps
The product is a work in progress, but we are open for the community to try out! Please indicate your interest via this form and we will send you further instructions on how to integrate with the Pipelined API.