You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
557 B

5 years ago
  1. const bigInt = require("big-integer");
  2. const ZnField = require("./znfield.js");
  3. module.eports = class G2Curve {
  4. constructor() {
  5. this.F = new ZnField(bigInt("21888242871839275222246405745257275088696311157297823662689037894645226208583"));
  6. this.g = [
  7. ];
  8. }
  9. add(p1, p2) {
  10. // TODO
  11. throw new Error("Not Implementted");
  12. }
  13. double(p1) {
  14. // TODO
  15. throw new Error("Not Implementted");
  16. }
  17. mulEscalar(p1, e) {
  18. // TODO
  19. throw new Error("Not Implementted");
  20. }
  21. };