This repository was archived by the owner on Jun 17, 2021. It is now read-only.
v6.2.0 - Modular Structure / Updated Keccak
This release comes with a new file structure, related functionality is now broken down into separate files (like account.js) allowing for more oversight and modular integration. All functionality is additionally exposed through an aggregating index.js file, so this version remains backwards-compatible.
Overview on the new structure:
account: Private/public key and address-related functionality (creation, validation, conversion)byte: Byte-related helper and conversion functionsconstants: Exposed constants (e.g.KECCAK256_NULL_Sfor the string representation of the Keccak-256 hash of null)hash: Hash functionsobject: Helper function for creating a binary object (DEPRECATED)signature: Signing, signature validation, conversion, recovery
See associated PRs #182 and #179.
Features
account: AddedEIP-1191address checksum algorithm support fortoChecksumAddress(),
PR #204
Bug Fixes
bytes:toBuffer()conversion function now throws if strings aren't0x-prefixed hex values making the behavior oftoBuffer()more predictable respectively less error-prone (you might generally want to check cases in your code where you eventually allowed non-0x-prefixed input before), PR #197
Dependencies / Environment
- Dropped Node
6, added Node11and12to officially supported Node versions,
PR #207 - Dropped
safe-bufferdependency,
PR #182 - Updated
rlpdependency fromv2.0.0tov2.2.3(TypeScriptimprovements
for RLP hash functionality),
PR #187 - Made
@types/bn.jsadependencyinstead of adevDependency,
PR #205 - Updated
keccak256dependency fromv1.4.0tov2.0.0, PR #168