Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ethersproject/json-wallets

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/json-wallets - npm Package Compare versions

Comparing version 5.0.7 to 5.0.8

src.ts/_version.ts

2

lib.esm/_version.d.ts

@@ -1,1 +0,1 @@

export declare const version = "json-wallets/5.0.7";
export declare const version = "json-wallets/5.0.8";

@@ -1,2 +0,2 @@

export const version = "json-wallets/5.0.7";
export const version = "json-wallets/5.0.8";
//# sourceMappingURL=_version.js.map

@@ -12,3 +12,3 @@ "use strict";

import aes from "aes-js";
import * as scrypt from "scrypt-js";
import scrypt from "scrypt-js";
import { getAddress } from "@ethersproject/address";

@@ -15,0 +15,0 @@ import { arrayify, concat, hexlify } from "@ethersproject/bytes";

@@ -1,1 +0,1 @@

export declare const version = "json-wallets/5.0.7";
export declare const version = "json-wallets/5.0.8";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "json-wallets/5.0.7";
exports.version = "json-wallets/5.0.8";
//# sourceMappingURL=_version.js.map

@@ -54,12 +54,5 @@ "use strict";

};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var aes_js_1 = __importDefault(require("aes-js"));
var scrypt = __importStar(require("scrypt-js"));
var scrypt_js_1 = __importDefault(require("scrypt-js"));
var address_1 = require("@ethersproject/address");

@@ -215,3 +208,3 @@ var bytes_1 = require("@ethersproject/bytes");

var data = JSON.parse(json);
var key = _computeKdfKey(data, password, pbkdf2Sync, scrypt.syncScrypt);
var key = _computeKdfKey(data, password, pbkdf2Sync, scrypt_js_1.default.syncScrypt);
return _getAccount(data, key);

@@ -227,3 +220,3 @@ }

data = JSON.parse(json);
return [4 /*yield*/, _computeKdfKey(data, password, pbkdf2, scrypt.scrypt, progressCallback)];
return [4 /*yield*/, _computeKdfKey(data, password, pbkdf2, scrypt_js_1.default.scrypt, progressCallback)];
case 1:

@@ -325,3 +318,3 @@ key = _a.sent();

// - 32 bytes AES key to encrypt mnemonic with (required here to be Ethers Wallet)
return scrypt.scrypt(passwordBytes, salt, N, r, p, 64, progressCallback).then(function (key) {
return scrypt_js_1.default.scrypt(passwordBytes, salt, N, r, p, 64, progressCallback).then(function (key) {
key = bytes_1.arrayify(key);

@@ -328,0 +321,0 @@ // This will be used to encrypt the wallet (as per Web3 secret storage)

@@ -20,3 +20,3 @@ {

"ethereum": "donations.ethers.eth",
"gitHead": "ffa4a2d0549fe2c606bda3130f4a3f3d788f8dcf",
"gitHead": "8933467c01b64ead547d7c136f22f3c05c85ca1f",
"keywords": [

@@ -40,5 +40,6 @@ "Ethereum",

},
"tarballHash": "0xb4a979c5e6fd6dff4caf32dd6f891e9301a8c3855b5674ea32ce4c8c3267b942",
"sideEffects": false,
"tarballHash": "0xca169543368393bb678160dc42994207624307459f022ffa47b44ca47801aeeb",
"types": "./lib/index.d.ts",
"version": "5.0.7"
"version": "5.0.8"
}

Sorry, the diff of this file is not supported yet

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