You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
482 B

pragma circom 2.0.0;
include "node_modules/keccak256-circom/circuits/keccak.circom";
template KeccakChain () {
signal input ivc_input[32*8];
signal output ivc_output[32*8];
component keccak = Keccak(32*8, 32*8);
for (var i=0; i<32*8; i++) {
keccak.in[i] <== ivc_input[i];
}
for (var i=0; i<32*8; i++) {
ivc_output[i] <== keccak.out[i];
}
}
// for a input & output of 32 bytes:
component main { public [ivc_input] } = KeccakChain();