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

template AND() {
signal input s1;
signal input s2;
signal output s3;
s3 <== s1*s2;
s1*(s1-1) === 0;
s2*(s2-1) === 0;
}
component main = AND();