iden3 / snarkjs

zkSNARK implementation in JavaScript & WASM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Threads not stopped automatically

codeblooded1729 opened this issue · comments

commented

I have observed that snarkjs.groth16.prove() and snarkjs.groth16.verify() do not, by default, terminate the threads spawned by stuff like buildBn128() which is called internally. But looks like all that needs to be done is call curve.terminate() after the job of curve is done. Is there any other solution provided by the library.

Duplicate of #152 - this is by design.