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.

13 lines
294 B

  1. const pedersenHash = require("./pedersenHash.js");
  2. let nBases;
  3. if (typeof process.argv[2] != "undefined") {
  4. nBases = parseInt(process.argv[2]);
  5. } else {
  6. nBases = 5;
  7. }
  8. for (let i=0; i < nBases; i++) {
  9. const p = pedersenHash.getBasePoint(i);
  10. console.log(`[${p[0]},${p[1]}]`);
  11. }