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.

17 lines
527 B

  1. include "../../circuits/escalarmulw4table.circom";
  2. template Main() {
  3. signal input in;
  4. signal output out[16][2];
  5. var base = [5299619240641551281634865583518297030282874472190772894086521144482721001553,
  6. 16950150798460657717958625567821834550301663161624707787222815936182638968203];
  7. component escalarMul = EscalarMulW4Table(base, 3);
  8. for (var i=0; i<16; i++) {
  9. out[i][0] <== escalarMul.out[i][0]*in;
  10. out[i][1] <== escalarMul.out[i][1]*in;
  11. }
  12. }
  13. component main = Main();