@armada/sdk / index / createSnarkjsProver
Function: createSnarkjsProver()
createSnarkjsProver():
ProverAdapter
Defined in: src/prover/snarkjs-prover.ts:76
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. The curve is shared process-wide, so it is terminated only when the LAST open prover closes and no proof or verification is still running.
A proof can't be interrupted inside a phase: an aborted signal is honoured before proving starts and at each phase boundary (after witness calculation, after proving), throwing AbortedError.