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

@nomicfoundation/ethereumjs-util

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nomicfoundation/ethereumjs-util - npm Package Compare versions

Comparing version 8.0.0-rc.2 to 8.0.0-rc.3

2

dist/account.js

@@ -154,3 +154,3 @@ "use strict";

// read the RLP documentation for an answer if you dare
return (0, bytes_1.toBuffer)((0, keccak_1.keccak256)((0, bytes_1.arrToBufArr)(ethereumjs_rlp_1.RLP.encode([from, null])))).slice(-20);
return Buffer.from((0, keccak_1.keccak256)((0, bytes_1.arrToBufArr)(ethereumjs_rlp_1.RLP.encode((0, bytes_1.bufArrToArr)([from, null]))))).slice(-20);
}

@@ -157,0 +157,0 @@ // Only take the lower 160bits of the hash

@@ -5,3 +5,3 @@ "use strict";

const keccak_1 = require("ethereum-cryptography/keccak");
const secp256k1_1 = require("secp256k1");
const secp256k1_1 = require("ethereum-cryptography/secp256k1");
const bytes_1 = require("./bytes");

@@ -8,0 +8,0 @@ const constants_1 = require("./constants");

{
"name": "@nomicfoundation/ethereumjs-util",
"version": "8.0.0-rc.2",
"version": "8.0.0-rc.3",
"description": "A collection of utility functions for Ethereum",

@@ -5,0 +5,0 @@ "keywords": [

@@ -209,3 +209,5 @@ import { RLP } from '@nomicfoundation/ethereumjs-rlp'

// read the RLP documentation for an answer if you dare
return toBuffer(keccak256(arrToBufArr(RLP.encode([from, null])))).slice(-20)
return Buffer.from(keccak256(arrToBufArr(RLP.encode(bufArrToArr([from, null] as any))))).slice(
-20
)
}

@@ -212,0 +214,0 @@

import { keccak256 } from 'ethereum-cryptography/keccak'
import { ecdsaRecover, ecdsaSign, publicKeyConvert } from 'secp256k1'
import { ecdsaRecover, ecdsaSign, publicKeyConvert } from 'ethereum-cryptography/secp256k1'

@@ -4,0 +4,0 @@ import { bufferToBigInt, bufferToHex, bufferToInt, setLengthLeft, toBuffer } from './bytes'

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

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