1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00

protob: Add NEMGetAddress & NEMAddress

This commit is contained in:
Saleem Rashid 2017-05-29 14:56:29 +01:00 committed by Pavol Rusnak
parent 4ac8e8cdff
commit 21716a5632

View File

@ -76,6 +76,8 @@ enum MessageType {
MessageType_EthereumSignMessage = 64 [(wire_in) = true]; MessageType_EthereumSignMessage = 64 [(wire_in) = true];
MessageType_EthereumVerifyMessage = 65 [(wire_in) = true]; MessageType_EthereumVerifyMessage = 65 [(wire_in) = true];
MessageType_EthereumMessageSignature = 66 [(wire_out) = true]; MessageType_EthereumMessageSignature = 66 [(wire_out) = true];
MessageType_NEMGetAddress = 67 [(wire_in) = true];
MessageType_NEMAddress = 68 [(wire_out) = true];
MessageType_DebugLinkDecision = 100 [(wire_debug_in) = true, (wire_tiny) = true]; MessageType_DebugLinkDecision = 100 [(wire_debug_in) = true, (wire_tiny) = true];
MessageType_DebugLinkGetState = 101 [(wire_debug_in) = true]; MessageType_DebugLinkGetState = 101 [(wire_debug_in) = true];
MessageType_DebugLinkState = 102 [(wire_debug_out) = true]; MessageType_DebugLinkState = 102 [(wire_debug_out) = true];
@ -812,6 +814,30 @@ message SelfTest {
optional bytes payload = 1; // payload to be used in self-test optional bytes payload = 1; // payload to be used in self-test
} }
//////////////////
// NEM messages //
//////////////////
/**
* Request: Ask device for NEM address corresponding to address_n path
* @next PassphraseRequest
* @next NEMAddress
* @next Failure
*/
message NEMGetAddress {
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node
optional uint32 network = 2; // Network ID (0x68 = Mainnet, 0x98 = Testnet, 0x60 = Mijin)
optional bool show_display = 3; // Optionally show on display before sending the result
}
/**
* Response: Contains NEM address derived from device private seed
* @prev NEMGetAddress
*/
message NEMAddress {
required string address = 1; // NEM address in Base32 encoding
}
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
// Debug messages (only available if DebugLink is enabled) // // Debug messages (only available if DebugLink is enabled) //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////