Skip to content

Commit

Permalink
Update README.md (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
OBrezhniev authored Oct 25, 2024
1 parent 0e0126f commit d90fa78
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,31 @@ async function calculateProof() {

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

## Common Issues

### Multithreading with Worker Threads is not available in my execution environment

This happens in Bun, browser extensions, SES envs, etc.

You can switch to singlethreaded proof calculation using the following code:

```javascript
const result = await snarkjs.groth16.prove(zkey_final, wtns, undefined, {singleThread: true});
```

### Control initial memory allocation in witness calculator

To minimize amount of memory allocated on the web you could pass a following option:

```javascript
await wtnsCalculate(input, wasmFile, wtns, {memorySize: 0});
```

### Issues with Web Pack




## Further resources
- [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)
- [Scalable Multi-party Computation for zk-SNARK Parameters in
Expand Down

0 comments on commit d90fa78

Please sign in to comment.