From e2acdbff378ace4667933c356de9573e4e576057 Mon Sep 17 00:00:00 2001 From: Kendrick Tan Date: Sun, 25 Nov 2018 00:14:21 +0000 Subject: [PATCH] fixed hashexample.code example --- zokrates_book/src/sha256example.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zokrates_book/src/sha256example.md b/zokrates_book/src/sha256example.md index eec971b4..dbf6d368 100644 --- a/zokrates_book/src/sha256example.md +++ b/zokrates_book/src/sha256example.md @@ -76,7 +76,7 @@ First, Victor has to specify what hash he is interested in. Therefore, we have t ```zokrates import "LIBSNARK/sha256packed" -def main(field a, field b, field c, field d) -> (field): +def main(private field a, private field b, private field c, private field d) -> (field): h0, h1 = sha256packed(a, b, c, d) h0 == 263561599766550617289250058199814760685 h1 == 65303172752238645975888084098459749904 @@ -135,4 +135,4 @@ At this point, you’ve successfully ran you first zkSNARK on the Ethereum block > >In general, multiple parties may be interested in verifying the correctness of Alice's statement. For example, in the zero-knowledge based cryptocurrency Zcash, each node needs to be able to validate the correctness of transactions. In order to generalize the setup phase to these multi-party use-cases a tricky process, commonly referred to as “trusted setup” or "ceremony" needs to be conducted. > ->ZoKrates would welcome ideas to add support for such ceremonies! \ No newline at end of file +>ZoKrates would welcome ideas to add support for such ceremonies!