Comparing version 1.0.0 to 1.0.1
@@ -62,3 +62,7 @@ var crypto = require('crypto') | ||
var sha = crypto.createHash('sha256').update(this.publicKey).digest() | ||
this._pubKeyHash = crypto.createHash('rmd160').update(sha).digest() | ||
try { | ||
this._pubKeyHash = crypto.createHash('rmd160').update(sha).digest() | ||
} catch(e) { | ||
this._pubKeyHash = crypto.createHash('ripemd160').update(sha).digest() | ||
} | ||
return this._pubKeyHash | ||
@@ -65,0 +69,0 @@ } |
{ | ||
"name": "eckey", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Handle private key and public keys associated with elliptic curve cryptography. Used with crypto currencies such as Bitcoin, Litecoin, Dogecoin, etc. Works in both Node.js and the browser.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
9660
0
83