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

@ethersproject/hdnode

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/hdnode - npm Package Compare versions

Comparing version 5.0.0-beta.127 to 5.0.0-beta.128

2

_version.d.ts

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

export declare const version = "5.0.0-beta.127";
export declare const version = "5.0.0-beta.128";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.version = "5.0.0-beta.127";
exports.version = "5.0.0-beta.128";
"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 basex_1 = require("@ethersproject/basex");
var errors = __importStar(require("@ethersproject/errors"));
var bytes_1 = require("@ethersproject/bytes");

@@ -21,2 +13,5 @@ var bignumber_1 = require("@ethersproject/bignumber");

var wordlists_1 = require("@ethersproject/wordlists");
var logger_1 = require("@ethersproject/logger");
var _version_1 = require("./_version");
var logger = new logger_1.Logger(_version_1.version);
var N = bignumber_1.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");

@@ -53,3 +48,3 @@ // "Bitcoin seed"

var _newTarget = this.constructor;
errors.checkNew(_newTarget, HDNode);
logger.checkNew(_newTarget, HDNode);
if (constructorGuard !== _constructorGuard) {

@@ -196,6 +191,3 @@ throw new Error("HDNode constructor cannot be called directly");

if (bytes.length !== 82 || base58check(bytes.slice(0, 78)) !== extendedKey) {
errors.throwError("invalid extended key", errors.INVALID_ARGUMENT, {
argument: "extendedKey",
value: "[REDACTED]"
});
logger.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
}

@@ -220,6 +212,3 @@ var depth = bytes[4];

}
return errors.throwError("invalid extended key", errors.INVALID_ARGUMENT, {
argument: "extendedKey",
value: "[REDACTED]"
});
return logger.throwError("invalid extended key", "extendedKey", "[REDACTED]");
};

@@ -241,3 +230,3 @@ return HDNode;

}
errors.checkNormalize();
logger.checkNormalize();
var words = wordlist.split(mnemonic);

@@ -244,0 +233,0 @@ if ((words.length % 3) !== 0) {

{
"name": "@ethersproject/hdnode",
"version": "5.0.0-beta.127",
"version": "5.0.0-beta.128",
"description": "BIP32 Hierarchal Deterministic Node operations.",

@@ -14,3 +14,3 @@ "main": "index.js",

"@ethersproject/bytes": ">5.0.0-beta.0",
"@ethersproject/errors": ">5.0.0-beta.0",
"@ethersproject/logger": ">5.0.0-beta.0",
"@ethersproject/pbkdf2": ">5.0.0-beta.0",

@@ -33,3 +33,3 @@ "@ethersproject/properties": ">5.0.0-beta.0",

},
"tarballHash": "0xff879047a41e893228ed4e40a5d1d800f3c4c7793ffefda57df068c819f43666"
"tarballHash": "0xa673c44201745fdb3d607e53ac3923dd3c1e94ee44dbda2c3058d1936433a076"
}
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