From 9d2ab7318db08a47b35588b0593fb66129214f8d Mon Sep 17 00:00:00 2001 From: Jochen Hoenicke Date: Sun, 22 Jan 2017 12:16:49 +0100 Subject: [PATCH] Ethereum: chain id for EIP-155 replay protection (#23) Added a field chain_id. To get a backwards compatible signature this field should not be set. Otherwise it should be set to the EIP-155 chain id. Currently only chain id between 1 and 109 are supported. See trezor/trezor-mcu#142 --- protob/messages.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/protob/messages.proto b/protob/messages.proto index 2e107e033..981a5a11f 100644 --- a/protob/messages.proto +++ b/protob/messages.proto @@ -622,6 +622,7 @@ message EthereumSignTx { optional bytes value = 6; // <=256 bit unsigned big endian (in wei) optional bytes data_initial_chunk = 7; // The initial data chunk (<= 1024 bytes) optional uint32 data_length = 8; // Length of transaction payload + optional uint32 chain_id = 9; // Chain Id for EIP 155 } /**