solutions/zokrates_prover/root.zok

9 lines
179 B
Plaintext

import "hashes/sha256/sha256Padded";
def main(private u8[8] a, u32[8] b) {
u32[8] hash = sha256Padded(a);
log("The hash: {}", hash);
assert(hash == b);
return;
}