1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00
ZoKrates/zokrates_cli/examples/book/hashexample.code
2019-01-24 17:05:19 +01:00

5 lines
No EOL
191 B
Text

import "hashes/sha256/512bitPacked.code" as sha256packed
def main(private field a, private field b, private field c, private field d) -> (field[2]):
h = sha256packed([a, b, c, d])
return h