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.
|
|
include "../../circuit/pedersen.circom"; include "../../node_modules/circom/circuits/bitify.circom";
template Main() { signal input in[2]; signal output out[2];
component pedersen = Pedersen(253*2);
component n2b[2]; n2b[0] = Num2Bits(253); n2b[1] = Num2Bits(253);
var i;
in[0] ==> n2b[0].in; in[1] ==> n2b[1].in;
for (i=0; i<253; i++) { n2b[0].out[i] ==> pedersen.in[i]; n2b[1].out[i] ==> pedersen.in[253+i]; }
pedersen.out[0] ==> out[0]; pedersen.out[1] ==> out[1]; }
component main = Main();
|