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.

31 lines
580 B

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