Browse Source

Fix typo in example's function

The correct API is not fs.writeFileSink, its fs.writeFileSync
master
iovoid 6 years ago
committed by GitHub
parent
commit
0504fdfef9
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