mirror of
https://github.com/logos-storage/logos-storage-proofs.git
synced 2026-01-03 14:03:10 +00:00
13 lines
274 B
Plaintext
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);
|