@toruslabs/torus.js
Advanced tools
Comparing version 12.3.1 to 12.3.2
@@ -718,3 +718,3 @@ import stringify from 'json-stable-stringify'; | ||
} | ||
return Promise.reject(new Error(`invalid ${JSON.stringify(resultArr)}`)); | ||
return Promise.reject(new Error(`invalid commitment results ${JSON.stringify(resultArr)}`)); | ||
}).then(responses => { | ||
@@ -904,3 +904,3 @@ const promiseArrRequest = []; | ||
sessionTokensResolved.forEach((x, index) => { | ||
if (!x) sessionTokenData.push(undefined);else sessionTokenData.push({ | ||
if (!x || !sessionSigsResolved[index]) sessionTokenData.push(undefined);else sessionTokenData.push({ | ||
token: x.toString("base64"), | ||
@@ -954,3 +954,6 @@ signature: sessionSigsResolved[index].toString("hex"), | ||
} | ||
throw new Error("Invalid"); | ||
if (completedRequests.length < thresholdReqCount) { | ||
throw new Error(`Waiting for results from more nodes, pending: ${thresholdReqCount - completedRequests.length}`); | ||
} | ||
throw new Error(`Invalid results, threshold pub key: ${thresholdPublicKey}, nonce data found: ${!!thresholdNonceData}, extended verifierId: ${verifierParams.extended_verifier_id}`); | ||
}); | ||
@@ -957,0 +960,0 @@ }).then(async res => { |
{ | ||
"name": "@toruslabs/torus.js", | ||
"version": "12.3.1", | ||
"version": "12.3.2", | ||
"description": "Handle communication with torus nodes", | ||
@@ -5,0 +5,0 @@ "main": "dist/torusUtils.cjs.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
377403
3465