From f719e9b74321b247dbbfef11ad92acc8d3719115 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 11 Jan 2019 11:25:49 +0000 Subject: [PATCH] Fix rendering of EIP-155 --- EIPS/eip-155.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EIPS/eip-155.md b/EIPS/eip-155.md index b5f4d3b1..84a36459 100644 --- a/EIPS/eip-155.md +++ b/EIPS/eip-155.md @@ -14,9 +14,11 @@ created: 2016-10-14 ### Parameters - `FORK_BLKNUM`: 2,675,000 - `CHAIN_ID`: 1 (main net) + ### Specification If `block.number >= FORK_BLKNUM` and `v = CHAIN_ID * 2 + 35` or `v = CHAIN_ID * 2 + 36`, then when computing the hash of a transaction for purposes of signing or recovering, instead of hashing only the first six elements (i.e. nonce, gasprice, startgas, to, value, data), hash nine elements, with `v` replaced by `CHAIN_ID`, `r = 0` and `s = 0`. The currently existing signature scheme using `v = 27` and `v = 28` remains valid and continues to operate under the same rules as it does now. + ### Example Consider a transaction with `nonce = 9`, `gasprice = 20 * 10**9`, `startgas = 21000`, `to = 0x3535353535353535353535353535353535353535`, `value = 10**18`, `data=''` (empty). @@ -44,6 +46,7 @@ Notice the use of 37 instead of 27. The signed tx would become: ``` 0xf86c098504a817c800825208943535353535353535353535353535353535353535880de0b6b3a76400008025a028ef61340bd939bc2195fe537567866003e1a15d3c71ff63e1590620aa636276a067cbe9d8997f761aecb703304b3800ccf555c9f3dc64214b297fb1966a3b6d83 ``` + ### Rationale This would provide a way to send transactions that work on Ethereum without working on ETC or the Morden testnet. ETC is encouraged to adopt this EIP but replacing `CHAIN_ID` with a different value, and all future testnets, consortium chains and alt-etherea are encouraged to adopt this EIP replacing `CHAIN_ID` with a unique value.