Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/pedersen_printbases.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import buildPedersenHash from "./pedersenhash.js";
import buildPedersenHash from "./pedersen_hash.js";

async function run() {
const pedersenHash = await buildPedersenHash();
Expand All @@ -17,15 +17,15 @@ async function run() {
baseHash = "blake";
}

for (let i=0; i < nBases; i++) {
const p = pedersenHash.getBasePoint(i);
for (let i = 0; i < nBases; i++) {
const p = pedersenHash.getBasePoint(baseHash, i);
console.log(`[${pedersenHash.babyJub.F.toString(p[0])},${pedersenHash.babyJub.F.toString(p[1])}]`);
}


}

run().then(()=> {
run().then(() => {
process.exit(0);
}, (err) => {
console.log(err.stack);
Expand Down