mirror of
https://github.com/codex-storage/codex-storage-proofs.git
synced 2025-01-09 18:35:48 +00:00
26d8f78c58
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
17 lines
280 B
Plaintext
17 lines
280 B
Plaintext
template Multiplier(n) {
|
|
signal private input a;
|
|
signal private input b;
|
|
signal output c;
|
|
|
|
signal int[n];
|
|
|
|
int[0] <== a*a + b;
|
|
for (var i=1; i<n; i++) {
|
|
int[i] <== int[i-1]*int[i-1] + b;
|
|
}
|
|
|
|
c <== int[n-1];
|
|
}
|
|
|
|
component main = Multiplier(1000);
|