1
0
Fork 0
mirror of synced 2025-09-24 04:40:05 +00:00
ZoKrates/zokrates_cli/examples/book/sha256_tutorial/hashexample_updated.zok
2021-07-15 12:10:26 +02:00

7 lines
No EOL
292 B
Text

import "hashes/sha256/512bitPacked" as sha256packed
def main(private field a, private field b, private field c, private field d):
field[2] h = sha256packed([a, b, c, d])
assert(h[0] == 263561599766550617289250058199814760685)
assert(h[1] == 65303172752238645975888084098459749904)
return