Architecture
Three stages: Prove → Submit → Execute.
- Prove: Client constructs the witness & ZK proof.
- Submit: Relayer forwards calldata & proof to contracts.
- Execute: Contracts verify the proof → state transition.
Components
- Client SDK — proof creation, input encryption.
- Relayer — network privacy & TX queueing.
- Contracts — on‑chain verification & execution rules.
// pseudo types type Proof = { a: string; b: string; c: string }; type Commitment = string;