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