1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00

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
This commit is contained in:
Jochen Hoenicke 2017-01-22 12:16:49 +01:00 committed by Pavol Rusnak
parent f94f7cb02b
commit 9d2ab7318d

View File

@ -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
}
/**