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.

26 lines
597 B

  1. include "../../circuits/escalarmul.circom";
  2. template Main() {
  3. signal input in[256];
  4. signal output out[2];
  5. var i;
  6. var base = [17777552123799933955779906779655732241715742912184938656739573121738514868268,
  7. 2626589144620713026669568689430873010625803728049924121243784502389097019475]
  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();