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.

24 lines
463 B

6 years ago
6 years ago
6 years ago
6 years ago
  1. include "../../circuit/escalarmul.circom";
  2. include "../../node_modules/circom/circuits/sha256/bitify.circom";
  3. template Main() {
  4. signal input in;
  5. signal output out[2];
  6. component n2b = Num2Bits(253);
  7. component escalarMul = EscalarMul(253);
  8. var i;
  9. in ==> n2b.in;
  10. for (i=0; i<253; i++) {
  11. n2b.out[i] ==> escalarMul.in[i];
  12. }
  13. escalarMul.out[0] ==> out[0];
  14. escalarMul.out[1] ==> out[1];
  15. }
  16. component main = Main();