mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-18 10:32:02 +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:
parent
f94f7cb02b
commit
9d2ab7318d
@ -622,6 +622,7 @@ message EthereumSignTx {
|
|||||||
optional bytes value = 6; // <=256 bit unsigned big endian (in wei)
|
optional bytes value = 6; // <=256 bit unsigned big endian (in wei)
|
||||||
optional bytes data_initial_chunk = 7; // The initial data chunk (<= 1024 bytes)
|
optional bytes data_initial_chunk = 7; // The initial data chunk (<= 1024 bytes)
|
||||||
optional uint32 data_length = 8; // Length of transaction payload
|
optional uint32 data_length = 8; // Length of transaction payload
|
||||||
|
optional uint32 chain_id = 9; // Chain Id for EIP 155
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user