ethereumjs-util
Advanced tools
Comparing version 4.4.0 to 4.4.1
@@ -6,3 +6,3 @@ const SHA3 = require('keccakjs') | ||
const BN = require('bn.js') | ||
const crypto = require('crypto') | ||
const createHash = require('create-hash') | ||
@@ -269,3 +269,3 @@ /** | ||
a = exports.toBuffer(a) | ||
return crypto.createHash('SHA256').update(a).digest() | ||
return createHash('sha256').update(a).digest() | ||
} | ||
@@ -282,3 +282,3 @@ | ||
a = exports.toBuffer(a) | ||
var hash = crypto.createHash('rmd160').update(a).digest() | ||
var hash = createHash('rmd160').update(a).digest() | ||
if (padded === true) { | ||
@@ -359,3 +359,3 @@ return exports.setLength(hash, 32) | ||
// skip the type flag and use the X, Y points | ||
return secp256k1.publicKeyConvert(secp256k1.publicKeyCreate(privateKey), false).slice(1) | ||
return secp256k1.publicKeyCreate(privateKey, false).slice(1) | ||
} | ||
@@ -362,0 +362,0 @@ |
{ | ||
"name": "ethereumjs-util", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"description": "a collection of utility functions for Ethereum", | ||
@@ -35,2 +35,3 @@ "main": "index.js", | ||
"bn.js": "^4.8.0", | ||
"create-hash": "^1.1.2", | ||
"keccakjs": "^0.2.0", | ||
@@ -37,0 +38,0 @@ "rlp": "^2.0.0", |
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
194061
21
1636
5
+ Addedcreate-hash@^1.1.2