Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update readme to show how to use flags #538

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading