From 215d35d8704f409c9d4ca4bd16902f8e2c65c692 Mon Sep 17 00:00:00 2001 From: matejcik Date: Mon, 31 May 2021 15:09:15 +0200 Subject: [PATCH] fix(common/protob): use proper field type for backup type on debuglink --- common/protob/messages-debug.proto | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/protob/messages-debug.proto b/common/protob/messages-debug.proto index fdda7d4af9..3ed839ad3e 100644 --- a/common/protob/messages-debug.proto +++ b/common/protob/messages-debug.proto @@ -6,6 +6,7 @@ option java_package = "com.satoshilabs.trezor.lib.protobuf"; option java_outer_classname = "TrezorMessageDebug"; import "messages-common.proto"; +import "messages-management.proto"; /** * Request: "Press" the button on the device @@ -78,14 +79,14 @@ message DebugLinkState { optional string pin = 2; // current PIN, blank if PIN is not set/enabled optional string matrix = 3; // current PIN matrix optional bytes mnemonic_secret = 4; // current mnemonic secret - optional hw.trezor.messages.common.HDNodeType node = 5; // current BIP-32 node + optional common.HDNodeType node = 5; // current BIP-32 node optional bool passphrase_protection = 6; // is node/mnemonic encrypted using passphrase? optional string reset_word = 7; // word on device display during ResetDevice workflow optional bytes reset_entropy = 8; // current entropy during ResetDevice workflow optional string recovery_fake_word = 9; // (fake) word on display during RecoveryDevice workflow optional uint32 recovery_word_pos = 10; // index of mnemonic word the device is expecting during RecoveryDevice workflow optional uint32 reset_word_pos = 11; // index of mnemonic word the device is expecting during ResetDevice workflow - optional uint32 mnemonic_type = 12; // current mnemonic type (BIP-39/SLIP-39) + optional management.BackupType mnemonic_type = 12; // current mnemonic type (BIP-39/SLIP-39) repeated string layout_lines = 13; // current layout text }