@toruslabs/torus.js
Advanced tools
Comparing version 6.2.0-alpha.0 to 6.2.0-alpha.1
@@ -1068,8 +1068,12 @@ /******/ (() => { // webpackBootstrap | ||
nodeIndexes.push(new (external_bn_js_default())(firstKey.node_index, 16)); | ||
sessionTokenData.push({ | ||
token: currentShareResponse.result.session_tokens[0], | ||
signature: currentShareResponse.result.session_token_sigs[0], | ||
node_pubx: currentShareResponse.result.node_pubx[0], | ||
node_puby: currentShareResponse.result.node_puby[0] | ||
}); | ||
if (currentShareResponse.result.session_tokens) { | ||
sessionTokenData.push({ | ||
token: currentShareResponse.result.session_tokens[0], | ||
signature: currentShareResponse.result.session_token_sigs[0], | ||
node_pubx: currentShareResponse.result.node_pubx[0], | ||
node_puby: currentShareResponse.result.node_puby[0] | ||
}); | ||
} else { | ||
sessionTokenData.push(undefined); | ||
} | ||
if (firstKey.metadata) { | ||
@@ -1143,2 +1147,5 @@ const metadata = { | ||
const decryptedPubKeyY = decryptedPubKey.slice(66); | ||
if (verifierParams.extended_verifier_id) { | ||
metadataNonce = new (external_bn_js_default())(0); | ||
} | ||
loglevel.debug("> torus.js/retrieveShares", { | ||
@@ -1145,0 +1152,0 @@ privKey: privateKey.toString(16), |
@@ -732,8 +732,12 @@ /******/ (() => { // webpackBootstrap | ||
nodeIndexes.push(new (external_bn_js_default())(firstKey.node_index, 16)); | ||
sessionTokenData.push({ | ||
token: currentShareResponse.result.session_tokens[0], | ||
signature: currentShareResponse.result.session_token_sigs[0], | ||
node_pubx: currentShareResponse.result.node_pubx[0], | ||
node_puby: currentShareResponse.result.node_puby[0] | ||
}); | ||
if (currentShareResponse.result.session_tokens) { | ||
sessionTokenData.push({ | ||
token: currentShareResponse.result.session_tokens[0], | ||
signature: currentShareResponse.result.session_token_sigs[0], | ||
node_pubx: currentShareResponse.result.node_pubx[0], | ||
node_puby: currentShareResponse.result.node_puby[0] | ||
}); | ||
} else { | ||
sessionTokenData.push(undefined); | ||
} | ||
if (firstKey.metadata) { | ||
@@ -807,2 +811,5 @@ const metadata = { | ||
const decryptedPubKeyY = decryptedPubKey.slice(66); | ||
if (verifierParams.extended_verifier_id) { | ||
metadataNonce = new (external_bn_js_default())(0); | ||
} | ||
loglevel.debug("> torus.js/retrieveShares", { | ||
@@ -809,0 +816,0 @@ privKey: privateKey.toString(16), |
@@ -613,8 +613,12 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty'; | ||
nodeIndexes.push(new BN(firstKey.node_index, 16)); | ||
sessionTokenData.push({ | ||
token: currentShareResponse.result.session_tokens[0], | ||
signature: currentShareResponse.result.session_token_sigs[0], | ||
node_pubx: currentShareResponse.result.node_pubx[0], | ||
node_puby: currentShareResponse.result.node_puby[0] | ||
}); | ||
if (currentShareResponse.result.session_tokens) { | ||
sessionTokenData.push({ | ||
token: currentShareResponse.result.session_tokens[0], | ||
signature: currentShareResponse.result.session_token_sigs[0], | ||
node_pubx: currentShareResponse.result.node_pubx[0], | ||
node_puby: currentShareResponse.result.node_puby[0] | ||
}); | ||
} else { | ||
sessionTokenData.push(undefined); | ||
} | ||
if (firstKey.metadata) { | ||
@@ -688,2 +692,5 @@ const metadata = { | ||
const decryptedPubKeyY = decryptedPubKey.slice(66); | ||
if (verifierParams.extended_verifier_id) { | ||
metadataNonce = new BN(0); | ||
} | ||
log.debug("> torus.js/retrieveShares", { | ||
@@ -690,0 +697,0 @@ privKey: privateKey.toString(16), |
{ | ||
"name": "@toruslabs/torus.js", | ||
"version": "6.2.0-alpha.0", | ||
"version": "6.2.0-alpha.1", | ||
"description": "Handle communication with torus nodes", | ||
@@ -5,0 +5,0 @@ "main": "dist/torusUtils.cjs.js", |
@@ -381,8 +381,14 @@ import { decrypt, generatePrivate, getPublic } from "@toruslabs/eccrypto"; | ||
nodeIndexes.push(new BN(firstKey.node_index, 16)); | ||
sessionTokenData.push({ | ||
token: currentShareResponse.result.session_tokens[0], | ||
signature: currentShareResponse.result.session_token_sigs[0], | ||
node_pubx: currentShareResponse.result.node_pubx[0], | ||
node_puby: currentShareResponse.result.node_puby[0], | ||
}); | ||
if (currentShareResponse.result.session_tokens) { | ||
sessionTokenData.push({ | ||
token: currentShareResponse.result.session_tokens[0], | ||
signature: currentShareResponse.result.session_token_sigs[0], | ||
node_pubx: currentShareResponse.result.node_pubx[0], | ||
node_puby: currentShareResponse.result.node_puby[0], | ||
}); | ||
} else { | ||
sessionTokenData.push(undefined); | ||
} | ||
if (firstKey.metadata) { | ||
@@ -457,2 +463,5 @@ const metadata = { | ||
const decryptedPubKeyY = decryptedPubKey.slice(66); | ||
if (verifierParams.extended_verifier_id) { | ||
metadataNonce = new BN(0); | ||
} | ||
log.debug("> torus.js/retrieveShares", { privKey: privateKey.toString(16), metadataNonce: metadataNonce.toString(16) }); | ||
@@ -459,0 +468,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
5039442
37140
7