Update zokrates_book/src/rng_tutorial.md
Co-authored-by: Thibaut Schaeffer <schaeffer.thibaut@gmail.com>
This commit is contained in:
parent
fbb7065e63
commit
ebd3e07c5e
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ I assume you already have them installed, and the Ganache blockchains is running
|
|||
cheat = [...proof.inputs]
|
||||
cheat[cheat.length-1] = cheat[cheat.length-1].replace(/[01]$/, cheat[cheat.length-1][65] == '1' ? '0': '1')
|
||||
```
|
||||
1. As Bob, try to verify a cheating proof, and see that it fails.
|
||||
1. As Bob, try to verify a cheating proof, and check that it fails.
|
||||
```javascript
|
||||
await contract.verifyTx(proof.proof.a, proof.proof.b, proof.proof.c, cheat)
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue