diff --git a/protob/messages.proto b/protob/messages.proto index 7059274006..21ff2f9a29 100644 --- a/protob/messages.proto +++ b/protob/messages.proto @@ -441,19 +441,8 @@ message SimpleSignTx { */ message TxRequest { optional RequestType request_type = 1; // what should be filled in TxAck message? - optional TxRequestDetails details = 2; // request for tx details - optional TxRequestSerialized serialized = 3; // serialized data and request for next -} - -message TxRequestDetails { - optional uint32 request_index = 1; // device expects TxAck message from the computer - optional bytes tx_hash = 2; // tx_hash of requested transaction -} - -message TxRequestSerialized { - optional uint32 signature_index = 1; // 'signature' field contains signed input of this index - optional bytes signature = 2; // signature of the signature_index input - optional bytes serialized_tx = 3; // part of serialized and signed transaction + optional TxRequestDetailsType details = 2; // request for tx details + optional TxRequestSerializedType serialized = 3; // serialized data and request for next } /** diff --git a/protob/types.proto b/protob/types.proto index d05cd0744b..ff6aa20c38 100644 --- a/protob/types.proto +++ b/protob/types.proto @@ -159,3 +159,14 @@ message TransactionType { repeated TxOutputType outputs = 5; optional uint32 lock_time = 4; } + +message TxRequestDetailsType { + optional uint32 request_index = 1; // device expects TxAck message from the computer + optional bytes tx_hash = 2; // tx_hash of requested transaction +} + +message TxRequestSerializedType { + optional uint32 signature_index = 1; // 'signature' field contains signed input of this index + optional bytes signature = 2; // signature of the signature_index input + optional bytes serialized_tx = 3; // part of serialized and signed transaction +}