tiny-secp256k1
Advanced tools
Comparing version 2.2.1 to 2.2.2
function get4RandomBytes() { | ||
const bytes = new Uint8Array(4); | ||
window.crypto.getRandomValues(bytes); | ||
if (typeof crypto === "undefined") { | ||
throw new Error("The crypto object is unavailable. This may occur if your environment does not support the Web Cryptography API."); | ||
} | ||
crypto.getRandomValues(bytes); | ||
return bytes; | ||
@@ -5,0 +8,0 @@ } |
{ | ||
"name": "tiny-secp256k1", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "A tiny secp256k1 JS", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/bitcoinjs/tiny-secp256k1#readme", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1283
214907