logos-storage-proofs/circuits/simple-hasher.circom

13 lines
274 B
Plaintext
Raw Normal View History

2023-03-16 13:59:08 -06:00
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);