logos-storage-proofs/circuits/simple-hasher.circom
Dmitriy Ryajov 8560db1ee5
wip rust ffi
2023-03-16 14:14:09 -06:00

13 lines
274 B
Plaintext

include "../node_modules/circomlib/circuits/poseidon.circom";
template SimpleHasher(SIZE) {
signal input in[SIZE];
signal input hash;
component hasher = Poseidon(SIZE);
hasher.inputs[0] <== in;
hasher.out === hash;
}
component main = SimpleHasher(2);