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.

27 lines
607 B

  1. pragma circom 2.0.0;
  2. include "../../circuits/escalarmul.circom";
  3. template Main() {
  4. signal input in[256];
  5. signal output out[2];
  6. var i;
  7. var base[2] = [5299619240641551281634865583518297030282874472190772894086521144482721001553, 16950150798460657717958625567821834550301663161624707787222815936182638968203];
  8. component escalarMul = EscalarMul(256, base);
  9. escalarMul.inp[0] <== 0;
  10. escalarMul.inp[1] <== 1;
  11. for (i=0; i<256; i++) {
  12. in[i] ==> escalarMul.in[i];
  13. }
  14. escalarMul.out[0] ==> out[0];
  15. escalarMul.out[1] ==> out[1];
  16. }
  17. component main = Main();