1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 23:48:12 +00:00

Reworked TxRequest message

This commit is contained in:
slush0 2014-04-10 14:42:50 +02:00
parent 28be645370
commit c6bcf54876
2 changed files with 13 additions and 13 deletions

View File

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

View File

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