From 99aed4bb43cdcff79c5be8da8c6feafb6df02e86 Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Wed, 13 Nov 2024 19:48:16 +0100 Subject: [PATCH] chore(protob): reserve wire types for thp messages [no changelog] --- common/protob/messages.proto | 3 +++ rust/trezor-client/src/protos/generated/messages.rs | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/common/protob/messages.proto b/common/protob/messages.proto index c8e862060c..c6ec31dc63 100644 --- a/common/protob/messages.proto +++ b/common/protob/messages.proto @@ -319,6 +319,9 @@ enum MessageType { MessageType_SolanaSignTx = 904 [(wire_in) = true]; MessageType_SolanaTxSignature = 905 [(wire_out) = true]; + // THP + reserved 1000 to 1099; // See messages-thp.proto + // Benchmark MessageType_BenchmarkListNames = 9100 [(bitcoin_only) = true]; MessageType_BenchmarkNames = 9101 [(bitcoin_only) = true]; diff --git a/rust/trezor-client/src/protos/generated/messages.rs b/rust/trezor-client/src/protos/generated/messages.rs index b9c86ce62d..c8f4341b8a 100644 --- a/rust/trezor-client/src/protos/generated/messages.rs +++ b/rust/trezor-client/src/protos/generated/messages.rs @@ -1549,7 +1549,7 @@ impl MessageType { } static file_descriptor_proto_data: &'static [u8] = b"\ - \n\x0emessages.proto\x12\x12hw.trezor.messages\x1a\roptions.proto*\x81U\ + \n\x0emessages.proto\x12\x12hw.trezor.messages\x1a\roptions.proto*\x89U\ \n\x0bMessageType\x12(\n\x16MessageType_Initialize\x10\0\x1a\x0c\x80\xa6\ \x1d\x01\xb0\xb5\x18\x01\x90\xb5\x18\x01\x12\x1e\n\x10MessageType_Ping\ \x10\x01\x1a\x08\x80\xa6\x1d\x01\x90\xb5\x18\x01\x12%\n\x13MessageType_S\ @@ -1830,8 +1830,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\ \x8fG\x1a\x04\x80\xa6\x1d\x01\x1a\x04\xc8\xf3\x18\x01\"\x04\x08Z\x10\\\"\ \x04\x08G\x10J\"\x04\x08r\x10z\"\x06\x08\xdb\x01\x10\xdb\x01\"\x06\x08\ \xe0\x01\x10\xe0\x01\"\x06\x08\xac\x02\x10\xb0\x02\"\x06\x08\xb5\x02\x10\ - \xb8\x02B8\n#com.satoshilabs.trezor.lib.protobufB\rTrezorMessage\x80\xa6\ - \x1d\x01\ + \xb8\x02\"\x06\x08\xe8\x07\x10\xcb\x08B8\n#com.satoshilabs.trezor.lib.pr\ + otobufB\rTrezorMessage\x80\xa6\x1d\x01\ "; /// `FileDescriptorProto` object which was a source for this generated file