1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00

Update zokrates_book/src/rng_tutorial.md

Co-authored-by: Thibaut Schaeffer <schaeffer.thibaut@gmail.com>
This commit is contained in:
qbzzt 2020-11-16 14:42:10 +02:00 committed by GitHub
parent fbb7065e63
commit ebd3e07c5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
```