This repository has been 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_S
for 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-1191
address 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 Node11
and12
to officially supported Node versions,
PR #207 - Dropped
safe-buffer
dependency,
PR #182 - Updated
rlp
dependency fromv2.0.0
tov2.2.3
(TypeScript
improvements
for RLP hash functionality),
PR #187 - Made
@types/bn.js
adependency
instead of adevDependency
,
PR #205 - Updated
keccak256
dependency fromv1.4.0
tov2.0.0
, PR #168