New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@toruslabs/torus.js

Package Overview
Dependencies
Maintainers
4
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@toruslabs/torus.js - npm Package Compare versions

Comparing version 6.2.0-alpha.0 to 6.2.0-alpha.1

19

dist/torusUtils-node.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc