Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Merge pull request #53 from ethereumjs/add-draft-eip-1108-alt_bn128-g…
Browse files Browse the repository at this point in the history
…as-costs

New release v1.2.1 (added draft EIP-1108 alt_bn128 gas costs)
  • Loading branch information
holgerd77 authored Jun 5, 2019
2 parents 351aef9 + d99bb4e commit edd94fc
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
(modification: no type change headlines) and this project adheres to
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [1.2.1] - 2019-06-03

- Added `Istanbul` HF candidate [EIP-1108](https://eips.ethereum.org/EIPS/eip-1108)
(`DRAFT`) updated `alt_bn128` precompile gas costs (see `hardforks/istanbul.json`)

[1.2.1]: https://github.com/ethereumjs/ethereumjs-common/compare/v1.2.0...v1.2.1

## [1.2.0] - 2019-05-27

**DRAFT Istanbul Hardfork Support**
Expand Down
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ to ease `blockNumber` based access to parameters.

# Hardfork Params

## Active Hardforks

There are currently parameter changes by the following past and future hardfork by the
library supported:

Expand All @@ -73,7 +75,19 @@ library supported:
- `byzantium`
- `constantinople`
- `petersburg` (aka `constantinopleFix`, apply together with `constantinople`)
- `istanbul` (`DRAFT`)

## Future Hardforks

Scope and technical details on the `Istanbul` HF are currently forming out
within [EIP-1679](https://eips.ethereum.org/EIPS/eip-1679) respectively the
associated EIP pages.

Supported EIPs in the library:

- [EIP-1108](https://eips.ethereum.org/EIPS/eip-1108) `alt_bn128` precompile
gas cost reductions (HF candidate, `DRAFT` status)

## Parameter Access

For hardfork-specific parameter access with the `param()` and `paramByBlock()` functions
you can use the following `topics`:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ethereumjs-common",
"version": "1.2.0",
"version": "1.2.1",
"description": "Resources common to all Ethereum implementations",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
19 changes: 18 additions & 1 deletion src/hardforks/istanbul.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,24 @@
"status": "Draft"
},
"gasConfig": {},
"gasPrices": {},
"gasPrices": {
"ecAdd": {
"v": 150,
"d": "Gas costs for curve addition precompile"
},
"ecMul": {
"v": 6000,
"d": "Gas costs for curve multiplication precompile"
},
"ecPairing": {
"v": 45000,
"d": "Base gas costs for curve pairing precompile"
},
"ecPairingWord": {
"v": 34000,
"d": "Gas costs regarding curve pairing precompile input length"
}
},
"vm": {},
"pow": {},
"casper": {},
Expand Down

0 comments on commit edd94fc

Please sign in to comment.