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];
|
|
|
|
var base = [5299619240641551281634865583518297030282874472190772894086521144482721001553,
|
|
|
|
16950150798460657717958625567821834550301663161624707787222815936182638968203];
|
|
|
|
|
|
|
|
component escalarMul = EscalarMulW4Table(base, 3);
|
|
|
|
for (var i=0; i<16; i++) {
|
|
|
|
out[i][0] <== escalarMul.out[i][0]*in;
|
|
|
|
out[i][1] <== escalarMul.out[i][1]*in;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
component main = Main();
|