fixed hashexample.code example
This commit is contained in:
parent
82db56cdef
commit
e2acdbff37
1 changed files with 2 additions and 2 deletions
|
@ -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!
|
||||
>ZoKrates would welcome ideas to add support for such ceremonies!
|
||||
|
|
Loading…
Reference in a new issue