1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-15 20:19:23 +00:00
trezor-firmware/common/protob/messages-ripple.proto

60 lines
2.0 KiB
Protocol Buffer
Raw Permalink Normal View History

2018-07-10 15:35:31 +00:00
syntax = "proto2";
2018-07-29 14:17:00 +00:00
package hw.trezor.messages.ripple;
2018-07-10 15:35:31 +00:00
// Sugar for easier handling in Java
option java_package = "com.satoshilabs.trezor.lib.protobuf";
option java_outer_classname = "TrezorMessageRipple";
/**
* Request: Address at the specified index
* @start
2018-07-10 15:35:31 +00:00
* @next RippleAddress
*/
message RippleGetAddress {
2019-08-21 15:30:52 +00:00
repeated uint32 address_n = 1; // BIP-32 path. For compatibility with other wallets, must be m/44'/144'/index'
optional bool show_display = 2; // optionally show on display before sending the result
2018-07-10 15:35:31 +00:00
}
/**
* Response: Address for the given index
* @end
2018-07-10 15:35:31 +00:00
*/
message RippleAddress {
required string address = 1; // Address in Ripple format (base58 of a pubkey with checksum)
2018-07-10 15:35:31 +00:00
}
/**
* Request: ask device to sign Ripple transaction
* @start
2018-07-10 15:35:31 +00:00
* @next RippleSignedTx
*/
message RippleSignTx {
2019-08-21 15:30:52 +00:00
repeated uint32 address_n = 1; // BIP-32 path. For compatibility with other wallets, must be m/44'/144'/index'
required uint64 fee = 2; // fee (in drops) for the transaction
optional uint32 flags = 3 [default=0]; // transaction flags
required uint32 sequence = 4; // transaction sequence number
2019-08-21 15:30:52 +00:00
optional uint32 last_ledger_sequence = 5; // see https://developers.ripple.com/reliable-transaction-submission.html#lastledgersequence
required RipplePayment payment = 6; // Payment transaction type
2018-07-10 15:35:31 +00:00
2019-08-21 15:30:52 +00:00
/**
* Payment transaction type
* - simple A sends money to B
* - only a subset of fields is supported
* - see https://developers.ripple.com/payment.html
*/
message RipplePayment {
required uint64 amount = 1; // only XRP is supported at the moment so this an integer
required string destination = 2; // destination account address
2019-08-21 15:30:52 +00:00
optional uint32 destination_tag = 3; // destination tag to identify payments
}
2018-07-10 15:35:31 +00:00
}
/**
* Response: signature for transaction
* @end
2018-07-10 15:35:31 +00:00
*/
message RippleSignedTx {
required bytes signature = 1;
required bytes serialized_tx = 2;
2018-07-10 15:35:31 +00:00
}