From 080dcf462ff4fb2818b663db29b5e525e0eda9a5 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 23 May 2016 21:23:50 +0100 Subject: [PATCH] Define field size limits for the Ethereum protocol --- firmware/protob/messages.options | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/firmware/protob/messages.options b/firmware/protob/messages.options index f13b1c740d..ee9b474ba3 100644 --- a/firmware/protob/messages.options +++ b/firmware/protob/messages.options @@ -34,6 +34,9 @@ GetAddress.coin_name max_size:17 Address.address max_size:36 +EthereumGetAddress.address_n max_count:8 +EthereumAddress.address max_size:20 + LoadDevice.mnemonic max_size:241 LoadDevice.pin max_size:10 LoadDevice.language max_size:17 @@ -89,6 +92,19 @@ EstimateTxSize.coin_name max_size:17 SignTx.coin_name max_size:17 +EthereumSignTx.address_n max_count:8 +EthereumSignTx.nonce max_size:32 +EthereumSignTx.gas_price max_size:32 +EthereumSignTx.gas_limit max_size:32 +EthereumSignTx.to max_size:20 +EthereumSignTx.value max_size:32 +EthereumSignTx.data_initial_chunk max_size:1024 + +EthereumTxRequest.signature_r max_size:32 +EthereumTxRequest.signature_s max_size:32 + +EthereumTxAck.data_chunk max_size:1024 + SignIdentity.challenge_hidden max_size:256 SignIdentity.challenge_visual max_size:256 SignIdentity.ecdsa_curve_name max_size:32