Skip to content

Commit d90fa78

Browse files
authored
Update README.md (iden3#538)
1 parent 0e0126f commit d90fa78

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -624,6 +624,31 @@ async function calculateProof() {
624624

625625
We advise using the latest version of snarkjs as previous versions may contain bugs and security issues.
626626

627+
## Common Issues
628+
629+
### Multithreading with Worker Threads is not available in my execution environment
630+
631+
This happens in Bun, browser extensions, SES envs, etc.
632+
633+
You can switch to singlethreaded proof calculation using the following code:
634+
635+
```javascript
636+
const result = await snarkjs.groth16.prove(zkey_final, wtns, undefined, {singleThread: true});
637+
```
638+
639+
### Control initial memory allocation in witness calculator
640+
641+
To minimize amount of memory allocated on the web you could pass a following option:
642+
643+
```javascript
644+
await wtnsCalculate(input, wasmFile, wtns, {memorySize: 0});
645+
```
646+
647+
### Issues with Web Pack
648+
649+
650+
651+
627652
## Further resources
628653
- [Announcing the Perpetual Powers of Tau Ceremony to benefit all zk-SNARK projects](https://medium.com/coinmonks/announcing-the-perpetual-powers-of-tau-ceremony-to-benefit-all-zk-snark-projects-c3da86af8377)
629654
- [Scalable Multi-party Computation for zk-SNARK Parameters in

0 commit comments

Comments
 (0)