Browse Source

Merge pull request #3 from io4/patch-1

Fix typo in example's function
master
Jordi Baylina 6 years ago
committed by GitHub
parent
commit
37ae9787ae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      README.md

+ 2
- 2
README.md

@ -79,8 +79,8 @@ const circuit = new zkSnark.Circuit(circuitDef);
```js ```js
const setup = zkSnark.setup(circuit); const setup = zkSnark.setup(circuit);
fs.writeFileSink("myCircuit.vk_proof", JSON.stringify(setup.vk_proof), "utf8");
fs.writeFileSink("myCircuit.vk_verifier", JSON.stringify(setup.vk_verifier), "utf8");
fs.writeFileSync("myCircuit.vk_proof", JSON.stringify(setup.vk_proof), "utf8");
fs.writeFileSync("myCircuit.vk_verifier", JSON.stringify(setup.vk_verifier), "utf8");
setup.toxic // Must be discarded. setup.toxic // Must be discarded.
``` ```

Loading…
Cancel
Save