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

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  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 = BinSum(32, 5);
  13. component ch = Ch(32);
  14. component bigsigma1 = BigSigma(6, 11, 25);
  15. for (var ki=0; ki<32; ki++) {
  16. bigsigma1.in[ki] <== e[ki];
  17. ch.a[ki] <== e[ki];
  18. ch.b[ki] <== f[ki];
  19. ch.c[ki] <== g[ki]
  20. sum.in[0][ki] <== h[ki];
  21. sum.in[1][ki] <== bigsigma1.out[ki];
  22. sum.in[2][ki] <== ch.out[ki];
  23. sum.in[3][ki] <== k[ki];
  24. sum.in[4][ki] <== w[ki];
  25. out[ki] <== sum.out[ki];
  26. }
  27. }