1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-26 09:52:34 +00:00

add SignMessage.script_type

This commit is contained in:
Pavol Rusnak 2017-07-24 16:05:13 +02:00
parent 2eb9c7e352
commit 00900951e0
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -306,9 +306,9 @@ message PublicKey {
message GetAddress { message GetAddress {
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 string coin_name = 2 [default='Bitcoin']; optional string coin_name = 2 [default='Bitcoin'];
optional bool show_display = 3; // optionally show on display before sending the result optional bool show_display = 3 ; // optionally show on display before sending the result
optional MultisigRedeemScriptType multisig = 4; // Filled if we are showing a multisig address optional MultisigRedeemScriptType multisig = 4; // filled if we are showing a multisig address
optional InputScriptType script_type = 5 [default=SPENDADDRESS]; // Used to distinguish segwit addresses optional InputScriptType script_type = 5 [default=SPENDADDRESS]; // used to distinguish between various address formats (non-segwit, segwit, etc.)
} }
/** /**
@ -454,6 +454,7 @@ message SignMessage {
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
required bytes message = 2; // message to be signed required bytes message = 2; // message to be signed
optional string coin_name = 3 [default='Bitcoin']; // coin to use for signing optional string coin_name = 3 [default='Bitcoin']; // coin to use for signing
optional InputScriptType script_type = 4 [default=SPENDADDRESS]; // used to distinguish between various address formats (non-segwit, segwit, etc.)
} }
/** /**