Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ethereumjs-util

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethereumjs-util - npm Package Compare versions

Comparing version 4.4.0 to 4.4.1

.npmignore

8

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc