@nomicfoundation/ethereumjs-util
Advanced tools
Comparing version 8.0.0-rc.2 to 8.0.0-rc.3
@@ -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
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
178612
3353