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

dashhd

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dashhd - npm Package Compare versions

Comparing version 3.2.0 to 3.3.0

30

dashhd.js

@@ -88,3 +88,3 @@ /**

//@ts-ignore
let Crypto = window.crypto || require("crypto");
let Crypto = globalThis.crypto;

@@ -103,4 +103,2 @@ //@ts-ignore

Utils.decode = async function (base58key, opts) {
//@ts-ignore - wth?
let DashKeys = window.DashKeys || require("dashkeys");
//@ts-ignore

@@ -116,4 +114,2 @@ return await DashKeys.decode(base58key, opts);

Utils.encodeXPrv = async function (keyBytes, opts) {
//@ts-ignore - wth?
let DashKeys = window.DashKeys || require("dashkeys");
let version = "xprv";

@@ -133,4 +129,2 @@ if (opts?.version) {

Utils.encodeXPub = async function (keyBytes) {
//@ts-ignore - wth?
let DashKeys = window.DashKeys || require("dashkeys");
//@ts-ignore

@@ -185,4 +179,2 @@ return await DashKeys.encodeKey(keyBytes, { version: "xpub" });

//@ts-ignore
let DashKeys = window.DashKeys || require("dashkeys");
//@ts-ignore
return await DashKeys.utils.ripemd160sum(bytes);

@@ -193,6 +185,2 @@ };

Utils.sha256sum = async function (bytes) {
if (!Crypto.subtle) {
let sha256 = Crypto.createHash("sha256").update(bytes).digest();
return new Uint8Array(sha256);
}
let arrayBuffer = await Crypto.subtle.digest("SHA-256", bytes);

@@ -205,7 +193,2 @@ let hashBytes = new Uint8Array(arrayBuffer);

Utils.sha512hmac = async function (entropy, data) {
if (!Crypto.subtle) {
let buf = Crypto.createHmac("sha512", entropy).update(data).digest();
return new Uint8Array(buf);
}
/** @type {"raw"|"pkcs8"|"spki"} */

@@ -251,7 +234,2 @@ let format = "raw";

Utils.secureErase = function (buf) {
if (!Crypto.getRandomValues) {
Crypto.randomBytes(buf.length).copy(buf);
return;
}
Crypto.getRandomValues(buf);

@@ -716,2 +694,8 @@ };

DashHd.toPublic = function (_hdkey) {
let hdkey = Object.assign({}, _hdkey);
hdkey.privateKey = null;
return hdkey;
};
/**

@@ -718,0 +702,0 @@ * @param {Boolean} assertion

{
"name": "dashhd",
"version": "3.2.0",
"version": "3.3.0",
"description": "Manage HD Keys from HD Wallet Seed and Extended (xprv, xpub) Key Paths. Part of $DASH Tools.",

@@ -5,0 +5,0 @@ "main": "dashhd.js",

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