mirror of
https://github.com/arnaucube/circom-compat.git
synced 2026-01-25 13:13:47 +01:00
16 lines
271 B
Plaintext
16 lines
271 B
Plaintext
template Multiplier() {
|
|
signal input a; // 3
|
|
signal input b; // 3
|
|
signal input c; // 3
|
|
signal temp;
|
|
signal output d; // 27
|
|
signal output e; // 9
|
|
|
|
temp <== a*b;
|
|
d <== temp*c;
|
|
e <== b*c;
|
|
}
|
|
|
|
component main{public [a, b]} = Multiplier();
|
|
|