mirror of
https://github.com/arnaucube/circomlib.git
synced 2026-02-07 03:06:44 +01:00
Change to a standard generator for Baby Jub
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
include "../../circuits/escalarmulw4table.circom";
|
||||
|
||||
var base = [17777552123799933955779906779655732241715742912184938656739573121738514868268,
|
||||
2626589144620713026669568689430873010625803728049924121243784502389097019475];
|
||||
|
||||
component main = EscalarMulW4Table(base, 0);
|
||||
template Main() {
|
||||
signal input in;
|
||||
signal output out[16][2];
|
||||
var base = [5299619240641551281634865583518297030282874472190772894086521144482721001553,
|
||||
16950150798460657717958625567821834550301663161624707787222815936182638968203];
|
||||
|
||||
component escalarMul = EscalarMulW4Table(base, 0);
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user