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
421 B

5 years ago
  1. include "../../circuit/exp.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 exp = Exp(253);
  8. var i;
  9. in ==> n2b.in;
  10. for (i=0; i<253; i++) {
  11. n2b.out[i] ==> exp.in[i];
  12. }
  13. exp.out[0] ==> out[0];
  14. exp.out[1] ==> out[1];
  15. }
  16. component main = Main();