This repository was archived by the owner on Jun 17, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,36 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66(modification: no type change headlines) and this project adheres to
77[ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
88
9+ ## [ 7.0.6] - [ UNRELEASED]
10+
11+ [ ADD REFERENCES TO YOUR WORK HERE UPON PRs. PLEASE ADOPT THE VERSION IF YOUR PR REQUIRES. ]
12+
13+ ## [ 7.0.5] - 2020-09-09
14+
15+ This release adds a new module ` address ` - see [ README] ( https://github.com/ethereumjs/ethereumjs-util#modules ) -
16+ with a new ` Address ` class and type which can be used for creating and representing Ethereum addresses.
17+
18+ Example usage:
19+
20+ ``` typescript
21+ import { Address } from ' ethereumjs-util'
22+
23+ const pubKey = Buffer .from (
24+ ' 3a443d8381a6798a70c6ff9304bdc8cb0163c23211d11628fae52ef9e0dca11a001cf066d56a8156fc201cd5df8a36ef694eecd258903fca7086c1fae7441e1d' ,
25+ ' hex' ,
26+ )
27+ const address = Address .fromPublicKey (pubKey )
28+ ```
29+
30+ In ` TypeScript ` the associated ` Address ` type can be used to more strictly enforce type checks
31+ (e.g. on the length of an address) on function parameters expecting an address input.
32+ So you can declare a function like the following: ` myAddressRelatedFunction(Address: address) `
33+ to get more assurance that the address input is correct.
34+
35+ See PR [ #186 ] ( https://github.com/ethereumjs/ethereumjs-util/pull/186 )
36+
37+ [ 7.0.5 ] : https://github.com/ethereumjs/ethereumjs-util/compare/v7.0.4...v7.0.5
38+
939## [ 7.0.4] - 2020-08-04
1040
1141- Fixed ` BN.js ` and ` RLP ` re-export failures from TypeScript,
Original file line number Diff line number Diff line change 11{
22 "name" : " ethereumjs-util" ,
3- "version" : " 7.0.4 " ,
3+ "version" : " 7.0.5 " ,
44 "description" : " a collection of utility functions for Ethereum" ,
55 "main" : " dist/index.js" ,
66 "types" : " ./dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments