From aaea64210605ce928f066c08aa7a2048f5749e5c Mon Sep 17 00:00:00 2001 From: Bryant Eisenbach Date: Sat, 7 Sep 2019 09:35:40 -0400 Subject: [PATCH] EIP-1344: Updated links (#2264) * EIP-1344: Updated links * EIP-1344: Fixed link formatting --- EIPS/eip-1344.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/EIPS/eip-1344.md b/EIPS/eip-1344.md index 81ce8191..4c42b51a 100644 --- a/EIPS/eip-1344.md +++ b/EIPS/eip-1344.md @@ -14,7 +14,7 @@ created: 2018-08-22 This EIP adds an opcode that returns the current chain's EIP-155 unique identifier. ## Motivation -[EIP-155](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-155.md) proposes to use the chain ID to prevent replay attacks between different chains. It would be a great benefit to have the same possibility inside smart contracts when handling signatures, especially for Layer 2 signature schemes using [EIP-712](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md). +[EIP-155](https://eips.ethereum.org/EIPS/eip-155) proposes to use the chain ID to prevent replay attacks between different chains. It would be a great benefit to have the same possibility inside smart contracts when handling signatures, especially for Layer 2 signature schemes using [EIP-712](https://eips.ethereum.org/EIPS/eip-712). ## Specification Adds a new opcode `CHAINID` at 0x46, which uses 0 stack arguments. It pushes the current chain ID onto the stack. Chain ID is a 256-bit value. The operation costs `G_base` to execute. @@ -43,11 +43,9 @@ This was previously suggested as part of [EIP901](https://github.com/ethereum/EI TBD ## Implementation -A reference implementation is here: -https://github.com/fubuloubu/py-evm/tree/eip1344-chain-id +A reference implementation for the Trinity Python client is [here](https://github.com/ethereum/py-evm/pull/1803). -An example implementation of a trustless chain ID oracle was implemented here: -https://github.com/fubuloubu/chain-id-oracle/blob/master/ChainIdOracle.vy +An example implementation of a trustless chain ID oracle was implemented [here](https://github.com/fubuloubu/chain-id-oracle/blob/master/ChainIdOracle.vy). ## Copyright Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).