snarkjs/src/g1curve.js
src/g1curve.jsRaw
1const bigInt = require("big-integer");
2const ZnField = require("./znfield.js");
3
4module.eports = class G1Curve {
5
6 constructor() {
7 this.F = new ZnField(bigInt("21888242871839275222246405745257275088696311157297823662689037894645226208583"));
8 this.g = [
9
10 ];
11
12 }
13
14 add(p1, p2) {
15 // TODO
16 throw new Error("Not Implementted");
17 }
18
19 double(p1) {
20 // TODO
21 throw new Error("Not Implementted");
22 }
23
24 mulEscalar(p1, e) {
25 // TODO
26 throw new Error("Not Implementted");
27 }
28
29};