1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-08-05 05:15:27 +00:00

change EncryptMessage / DecryptMessage API

This commit is contained in:
Pavol Rusnak 2014-06-13 16:32:20 +02:00
parent b0d84af06f
commit 4b9123ab3c

View File

@ -392,9 +392,9 @@ message MessageSignature {
* @next Failure * @next Failure
*/ */
message EncryptMessage { message EncryptMessage {
repeated uint32 address_n = 1; // BIP-32 path to derive the key from master node optional bytes pubkey = 1; // public key
optional bytes pubkey = 2; // public key optional bytes message = 2; // message to encrypt
optional bytes message = 3; // message to encrypt optional bool display_only = 3; // show just on display? (don't send back via wire)
} }
/** /**
@ -404,9 +404,7 @@ message EncryptMessage {
*/ */
message DecryptMessage { message DecryptMessage {
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 bytes pubkey = 2; // public key optional bytes message = 2; // message to decrypt
optional bytes message = 3; // message to decrypt
optional bool show_only = 4; // show just on display? (don't send back via wire)
} }
/** /**