ethereumjs-util v7.1.0
Distribution Changes
Dual ES5 and ES2017 Builds
We significantly updated our internal tool and CI setup along the work on PR #913 with an update to ESLint
from TSLint
for code linting and formatting and the introduction of a new build setup.
Packages now target ES2017
for Node.js builds (the main
entrypoint from package.json
) and introduce a separate ES5
build distributed along using the browser
directive as an entrypoint, see PR #921. This will result in performance benefits for Node.js consumers, see here for a releated discussion.
Included Source Files
Source files from the src
folder are now included in the distribution build, see PR #1301. This allows for a better debugging experience in debug tools like Chrome DevTools by having working source map references to the original sources available for inspection.
EIP-2098 Support (Compact 64-byte Signatures)
The signature
module comes with a new helper function toCompactSig(v: BNLike, r: Buffer, s: Buffer, chainId?: BNLike): string
which allows to convert signature parameters into the format of Compact Signature Representation as defined in EIP-2098.
Other Changes
- Renamed
bnToRlp()
helper function tobnToUnpaddedBuffer()
, PR #1293