Fix readme

This commit is contained in:
Jordi Baylina 2020-07-13 09:05:25 +02:00
parent 508f155e0e
commit 1d0691cb5d
No known key found for this signature in database
GPG Key ID: 7480C80C1BE43112

View File

@ -261,7 +261,7 @@ You can deploy th "Verifier" smartcontract using remix for example.
In order to simulate a verification call, you can do:
```sh
zkey export soliditycalldata public.json proof.json
snarkjs zkey export soliditycalldata public.json proof.json
```
And cut and paste the resolt directlly in the "verifyProof" field in the deployed smart contract.
@ -272,6 +272,7 @@ This call will return true if the proof and the public data is valid.
## Use in node
```sh
npm init
npm install snarkjs
```
@ -306,6 +307,10 @@ run().then(() => {
load snarkjs.min.js and start using it normally.
```
cp node_modules/snarkjs/build/snarkjs.min.js .
```
```html
<!doctype html>