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();