solutions/zokrates_prover/root.zok

9 lines
179 B
Plaintext
Raw Permalink Normal View History

2023-12-05 06:06:28 +00:00
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;
}