1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-01-22 21:30:56 +00:00

Merge branch 'master' into matejcik/coin-defs

This commit is contained in:
matejcik 2018-08-24 15:25:01 +02:00
commit a01b92339d
3 changed files with 7 additions and 26 deletions

View File

@ -34,6 +34,7 @@ message CardanoAddress {
*/ */
message CardanoGetPublicKey { message CardanoGetPublicKey {
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node
optional bool show_display = 2; // optionally show on display before sending the result
} }
/** /**
@ -81,11 +82,11 @@ message CardanoVerifyMessage {
/** /**
* Request: Ask device to sign Cardano transaction * Request: Ask device to sign Cardano transaction
* @start * @start
* @next CardanoSignedTransaction * @next CardanoSignedTx
* @next CardanoTxRequest * @next CardanoTxRequest
* @next Failure * @next Failure
*/ */
message CardanoSignTransaction { message CardanoSignTx {
repeated CardanoTxInputType inputs = 1; // inputs to be used in transaction repeated CardanoTxInputType inputs = 1; // inputs to be used in transaction
repeated CardanoTxOutputType outputs = 2; // outputs to be used in transaction repeated CardanoTxOutputType outputs = 2; // outputs to be used in transaction
optional uint32 transactions_count = 3; // transactions count optional uint32 transactions_count = 3; // transactions count
@ -121,7 +122,7 @@ message CardanoTxRequest {
/** /**
* Request: Reported transaction data * Request: Reported transaction data
* @next CardanoSignedTransaction * @next CardanoSignedTx
* @next CardanoTxRequest * @next CardanoTxRequest
*/ */
message CardanoTxAck { message CardanoTxAck {
@ -132,7 +133,7 @@ message CardanoTxAck {
* Response: Serialised signed cardano transaction * Response: Serialised signed cardano transaction
* @end * @end
*/ */
message CardanoSignedTransaction { message CardanoSignedTx {
optional bytes tx_hash = 1; // hash of the signed transaction optional bytes tx_hash = 1; // hash of the signed transaction
optional bytes tx_body = 2; // serialised body of the signed transaction optional bytes tx_body = 2; // serialised body of the signed transaction
} }

View File

@ -33,24 +33,6 @@ message StellarAddress {
optional string address = 1; // Address in Stellar format (base32 of a pubkey with checksum) optional string address = 1; // Address in Stellar format (base32 of a pubkey with checksum)
} }
/**
* Request: Public key at the specified index
* @start
* @next StellarPublicKey
*/
message StellarGetPublicKey {
repeated uint32 address_n = 1; // BIP-32 path. For compatibility with other wallets, must be m/44'/148'/index'
optional bool show_display = 2; // optionally show on display before sending the result
}
/**
* Response: Public key for the given index
* @end
*/
message StellarPublicKey {
optional bytes public_key = 1; // Raw bytes of the public key (no version or checksum)
}
/** /**
* Request: ask device to sign Stellar transaction * Request: ask device to sign Stellar transaction
* @start * @start

View File

@ -141,8 +141,6 @@ enum MessageType {
MessageType_TezosPublicKey = 155 [(wire_out) = true]; MessageType_TezosPublicKey = 155 [(wire_out) = true];
// Stellar // Stellar
MessageType_StellarGetPublicKey = 200 [(wire_in) = true];
MessageType_StellarPublicKey = 201 [(wire_out) = true];
MessageType_StellarSignTx = 202 [(wire_in) = true]; MessageType_StellarSignTx = 202 [(wire_in) = true];
MessageType_StellarTxOpRequest = 203 [(wire_out) = true]; MessageType_StellarTxOpRequest = 203 [(wire_out) = true];
MessageType_StellarGetAddress = 207 [(wire_in) = true]; MessageType_StellarGetAddress = 207 [(wire_in) = true];
@ -165,14 +163,14 @@ enum MessageType {
MessageType_CardanoSignMessage = 300 [(wire_in) = true]; MessageType_CardanoSignMessage = 300 [(wire_in) = true];
MessageType_CardanoMessageSignature = 301 [(wire_out) = true]; MessageType_CardanoMessageSignature = 301 [(wire_out) = true];
MessageType_CardanoVerifyMessage = 302 [(wire_in) = true]; MessageType_CardanoVerifyMessage = 302 [(wire_in) = true];
MessageType_CardanoSignTransaction = 303 [(wire_in) = true]; MessageType_CardanoSignTx = 303 [(wire_in) = true];
MessageType_CardanoTxRequest = 304 [(wire_out) = true]; MessageType_CardanoTxRequest = 304 [(wire_out) = true];
MessageType_CardanoGetPublicKey = 305 [(wire_in) = true]; MessageType_CardanoGetPublicKey = 305 [(wire_in) = true];
MessageType_CardanoPublicKey = 306 [(wire_out) = true]; MessageType_CardanoPublicKey = 306 [(wire_out) = true];
MessageType_CardanoGetAddress = 307 [(wire_in) = true]; MessageType_CardanoGetAddress = 307 [(wire_in) = true];
MessageType_CardanoAddress = 308 [(wire_out) = true]; MessageType_CardanoAddress = 308 [(wire_out) = true];
MessageType_CardanoTxAck = 309 [(wire_in) = true]; MessageType_CardanoTxAck = 309 [(wire_in) = true];
MessageType_CardanoSignedTransaction = 310 [(wire_out) = true]; MessageType_CardanoSignedTx = 310 [(wire_out) = true];
// Ontology // Ontology
MessageType_OntologyGetAddress = 350 [(wire_in) = true]; MessageType_OntologyGetAddress = 350 [(wire_in) = true];