Skip to content

@armada/sdk / index / createSnarkjsProver

Function: createSnarkjsProver()

createSnarkjsProver(): ProverAdapter

Defined in: src/prover/snarkjs-prover.ts:27

A same-thread ProverAdapter backed by snarkjs. Suitable for node + tests and as the constrained-env fallback; the Web Worker / worker_threads wrapper reuses this proving core off the main thread. close() MUST be called — snarkjs leaves bn128 curve worker threads alive that otherwise hang exit.

Returns

ProverAdapter