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

5 lines
No EOL
136 B
Text

import "hashes/sha256/512bit" as sha256
def main(u32[16] hashMe) -> u32[8]:
u32[8] h = sha256(hashMe[0..8], hashMe[8..16])
return h