From 46e4953dad1ace6039423b139b2029bc9e21cc08 Mon Sep 17 00:00:00 2001 From: Geoff Lamperd Date: Fri, 31 Mar 2023 15:26:03 +1100 Subject: [PATCH] fix partialHash --- src/misc.js | 4 ++-- src/powersoftau_export_json.js | 2 +- src/powersoftau_import.js | 5 ++--- src/powersoftau_utils.js | 13 +++---------- 4 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/misc.js b/src/misc.js index 87ba8d85..181069e7 100644 --- a/src/misc.js +++ b/src/misc.js @@ -73,7 +73,7 @@ export function formatHash(b, title) { export function hashToHex(b) { const a = new DataView(b.buffer, b.byteOffset, b.byteLength); let S = ""; - for (let i=0; i<16; i++) { + for (let i=0; i1) throw new Error(fd.fileName +": File has more than one contributions section"); @@ -239,7 +232,7 @@ export async function readContributions(fd, curve, sections, formatted = false) const nContributions = await fd.readULE32(); const contributions = []; for (let i=0; i