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.

20 lines
313 B

  1. pragma circom 2.0.0;
  2. include "../../circuits/sha256/constants.circom";
  3. template A() {
  4. signal input in;
  5. component h0;
  6. h0 = K(8);
  7. var lc = 0;
  8. var e = 1;
  9. for (var i=0; i<32; i++) {
  10. lc = lc + e*h0.out[i];
  11. e *= 2;
  12. }
  13. lc === in;
  14. }
  15. component main {public [in]} = A();