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.

19 lines
548 B

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