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.

11 lines
169 B

6 years ago
  1. template AND() {
  2. signal input s1;
  3. signal input s2;
  4. signal output s3;
  5. s3 <== s1*s2;
  6. s1*(s1-1) === 0;
  7. s2*(s2-1) === 0;
  8. }
  9. component main = AND();