# websnark A fast zkSnark proof generator written in native Web Assembly. websnark is used to generate zkSnark Proofs from the browser. This module generates highly optimized Web Assembly modules for the low level cryptographic primitives. It also makes use of the Web Workers feature to parallelize the generation of the zero knoledge proofs. The result is a fast library with times close to libsnarks but fully compatible for browsers. ## Usage You just need to import the websnark.js found in the build directory. ```html

iden3

Zero knowledge proof generator





```

You can test it by running a web server on the example directory

```
npm -g install http-server
cd example
http-server .
```

And then navegate to [http://127.0.0.1:8080](http://127.0.0.1:8080)

The generated proof can be cut and pasted to `example/proof` and tested with snarkjs

```
snarkjs verify
``

## Building wasm.js

```
npm run build
```

## Testing

```
npm test
```

## License

websnark is part of the iden3 project copyright 2019 0KIMS association and published with GPL-3 license. Please check the COPYING file for more details.