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.

33 lines
719 B

  1. include "binsum.circom";
  2. include "sigma.circom";
  3. include "ch.circom";
  4. template T1() {
  5. signal input h[32];
  6. signal input e[32];
  7. signal input f[32];
  8. signal input g[32];
  9. signal input k[32];
  10. signal input w[32];
  11. signal output out[32];
  12. component sum = Sum(32, 5);
  13. component ch = Ch(32);
  14. component bigsigma1 = Sigma(6, 11, 25);
  15. for (var k=0; k<32; k++) {
  16. bigsigma1.in[k] <== e[k];
  17. ch.a[k] <== e[k];
  18. ch.b[k] <== f[k];
  19. ch.c[k] <== g[k]
  20. sum.in[0][k] <== h[k];
  21. sum.in[1][k] <== bigsigma1.out[k];
  22. sum.in[2][k] <== ch.out[k];
  23. sum.in[3][k] <== k[k];
  24. sum.in[4][k] <== w[k];
  25. out[k] <== sum.out[k];
  26. }
  27. }