Comparing version 4.0.0 to 4.0.1
@@ -50,3 +50,3 @@ const EC = require('elliptic').ec | ||
case 0x03: | ||
// if (pubkey.length !== 33) return null | ||
if (pubkey.length !== 33) return null | ||
return loadCompressedPublicKey(first, pubkey.subarray(1, 33)) | ||
@@ -56,3 +56,3 @@ case 0x04: | ||
case 0x07: | ||
// if (pubkey.length !== 65) return null | ||
if (pubkey.length !== 65) return null | ||
return loadUncompressedPublicKey(first, pubkey.subarray(1, 33), pubkey.subarray(33, 65)) | ||
@@ -59,0 +59,0 @@ default: |
{ | ||
"name": "secp256k1", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "This module provides native bindings to ecdsa secp256k1 functions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -60,2 +60,4 @@ # secp256k1-node | ||
// generate message to sign | ||
// message should have 32-byte length, if you have some other length you can hash message | ||
// for example `msg = sha256(rawMessage)` | ||
const msg = randomBytes(32) | ||
@@ -62,0 +64,0 @@ |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
118
1
1674695