2018-12-06 19:32:49 +03:00
|
|
|
include "../../circuits/escalarmulw4table.circom";
|
2018-11-11 21:52:07 +03:00
|
|
|
|
|
|
|
|
2019-08-03 13:46:21 +03:00
|
|
|
template Main() {
|
|
|
|
signal input in;
|
|
|
|
signal output out[16][2];
|
2019-12-23 21:36:26 +03:00
|
|
|
var base[2] = [5299619240641551281634865583518297030282874472190772894086521144482721001553,
|
2019-08-03 13:46:21 +03:00
|
|
|
16950150798460657717958625567821834550301663161624707787222815936182638968203];
|
|
|
|
|
2019-12-23 21:36:26 +03:00
|
|
|
var escalarMul[16][2] = EscalarMulW4Table(base, 0);
|
2019-08-03 13:46:21 +03:00
|
|
|
for (var i=0; i<16; i++) {
|
2019-12-04 23:57:02 +03:00
|
|
|
out[i][0] <== escalarMul[i][0]*in;
|
|
|
|
out[i][1] <== escalarMul[i][1]*in;
|
2019-08-03 13:46:21 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
component main = Main();
|