Comparing version 0.9.2-0 to 0.9.2-1
@@ -156,2 +156,7 @@ /** @typedef {import('./base-x.types.js').BaseX} BaseX */ | ||
Utils.sha256sum = async function (bytes) { | ||
if (!Crypto.subtle) { | ||
//@ts-ignore | ||
let sha256 = Crypto.createHash("sha256").update(bytes).digest(); | ||
return new Uint8Array(sha256); | ||
} | ||
let arrayBuffer = await Crypto.subtle.digest("SHA-256", bytes); | ||
@@ -370,4 +375,5 @@ let hashBytes = new Uint8Array(arrayBuffer); | ||
//@ts-ignore | ||
let key = parts.pubKeyHash || parts.privateKey || parts.xprv || parts.xpub; | ||
let key = | ||
//@ts-ignore | ||
parts.pubKeyHash || parts.privateKey || parts.xprv || parts.xpub; | ||
let compression = ""; | ||
@@ -374,0 +380,0 @@ //@ts-ignore |
{ | ||
"name": "dashkeys", | ||
"version": "0.9.2-0", | ||
"version": "0.9.2-1", | ||
"description": "Generate, validate, create, and convert WIFs and PayAddress.", | ||
@@ -5,0 +5,0 @@ "main": "dashkeys.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67582
1433