mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +00:00
protob: fix whitespace and order in messages-monero.proto
This commit is contained in:
parent
1ef050fb15
commit
21b3cd4352
@ -5,6 +5,53 @@ package hw.trezor.messages.monero;
|
||||
option java_package = "com.satoshilabs.trezor.lib.protobuf";
|
||||
option java_outer_classname = "TrezorMessageMonero";
|
||||
|
||||
/**
|
||||
* Structure representing Monero transaction source entry, UTXO
|
||||
* @embed
|
||||
*/
|
||||
message MoneroTransactionSourceEntry {
|
||||
repeated MoneroOutputEntry outputs = 1;
|
||||
optional uint64 real_output = 2;
|
||||
optional bytes real_out_tx_key = 3;
|
||||
repeated bytes real_out_additional_tx_keys = 4;
|
||||
optional uint64 real_output_in_tx_index = 5;
|
||||
optional uint64 amount = 6;
|
||||
optional bool rct = 7;
|
||||
optional bytes mask = 8;
|
||||
optional MoneroMultisigKLRki multisig_kLRki = 9;
|
||||
message MoneroOutputEntry {
|
||||
optional uint64 idx = 1;
|
||||
optional MoneroRctKey key = 2;
|
||||
message MoneroRctKey {
|
||||
optional bytes dest = 1;
|
||||
optional bytes mask = 2;
|
||||
}
|
||||
}
|
||||
message MoneroMultisigKLRki {
|
||||
optional bytes K = 1;
|
||||
optional bytes L = 2;
|
||||
optional bytes R = 3;
|
||||
optional bytes ki = 4;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Structure representing Monero transaction destination entry
|
||||
* @embed
|
||||
*/
|
||||
message MoneroTransactionDestinationEntry {
|
||||
optional uint64 amount = 1;
|
||||
optional MoneroAccountPublicAddress addr = 2;
|
||||
optional bool is_subaddress = 3;
|
||||
/**
|
||||
* Structure representing Monero public address
|
||||
*/
|
||||
message MoneroAccountPublicAddress {
|
||||
optional bytes spend_public_key = 1;
|
||||
optional bytes view_public_key = 2;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Request: Ask device for public address derived from seed and address_n
|
||||
* @start
|
||||
@ -47,23 +94,6 @@ message MoneroWatchKey {
|
||||
optional bytes address = 2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Structure representing Monero transaction destination entry
|
||||
*/
|
||||
message MoneroTransactionDestinationEntry {
|
||||
optional uint64 amount = 1;
|
||||
optional MoneroAccountPublicAddress addr = 2;
|
||||
optional bool is_subaddress = 3;
|
||||
|
||||
/**
|
||||
* Structure representing Monero public address
|
||||
*/
|
||||
message MoneroAccountPublicAddress {
|
||||
optional bytes spend_public_key = 1;
|
||||
optional bytes view_public_key = 2;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Request: Sub request of MoneroTransactionSign. Initializes transaction signing.
|
||||
* @start
|
||||
@ -108,38 +138,6 @@ message MoneroTransactionInitAck {
|
||||
optional bool many_outputs = 6;
|
||||
}
|
||||
|
||||
/**
|
||||
* Structure representing Monero transaction source entry, UTXO
|
||||
*/
|
||||
message MoneroTransactionSourceEntry {
|
||||
repeated MoneroOutputEntry outputs = 1;
|
||||
optional uint64 real_output = 2;
|
||||
optional bytes real_out_tx_key = 3;
|
||||
repeated bytes real_out_additional_tx_keys = 4;
|
||||
optional uint64 real_output_in_tx_index = 5;
|
||||
optional uint64 amount = 6;
|
||||
optional bool rct = 7;
|
||||
optional bytes mask = 8;
|
||||
optional MoneroMultisigKLRki multisig_kLRki = 9;
|
||||
|
||||
message MoneroRctKey {
|
||||
optional bytes dest = 1;
|
||||
optional bytes mask = 2;
|
||||
}
|
||||
|
||||
message MoneroOutputEntry {
|
||||
optional uint64 idx = 1;
|
||||
optional MoneroRctKey key = 2;
|
||||
}
|
||||
|
||||
message MoneroMultisigKLRki {
|
||||
optional bytes K = 1;
|
||||
optional bytes L = 2;
|
||||
optional bytes R = 3;
|
||||
optional bytes ki = 4;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Request: Sub request of MoneroTransactionSign. Sends one UTXO to device
|
||||
* @next MoneroTransactionSetInputAck
|
||||
|
Loading…
Reference in New Issue
Block a user