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.

29 lines
558 B

  1. include "../../circuits/pedersen_old.circom";
  2. include "../../circuits/bitify.circom";
  3. template Main() {
  4. signal input in[2];
  5. signal output out[2];
  6. component pedersen = Pedersen(250*2);
  7. component n2b[2];
  8. n2b[0] = Num2Bits(250);
  9. n2b[1] = Num2Bits(250);
  10. var i;
  11. in[0] ==> n2b[0].in;
  12. in[1] ==> n2b[1].in;
  13. for (i=0; i<250; i++) {
  14. n2b[0].out[i] ==> pedersen.in[i];
  15. n2b[1].out[i] ==> pedersen.in[250+i];
  16. }
  17. pedersen.out[0] ==> out[0];
  18. pedersen.out[1] ==> out[1];
  19. }
  20. component main = Main();