chore: reserve message type range [no changelog]
What changed, and why it matters
This commit simply marks protobuf message type numbers 123 through 149 as reserved for future internal use. It is a routine development housekeeping change with no functional code changes and no security relevance.
No action required; this is a benign chore commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The change adds a reserved 123 to 149; line in common/protob/messages.proto and updates the corresponding generated Rust protobuf descriptor bytes in rust/trezor-client/src/protos/generated/messages.rs. This prevents future message definitions from accidentally using those type IDs. No logic, parsing, or wire behavior is modified.
Changed components
common/protob/messages.protorust/trezor-client/src/protos/generated/messages.rsInspect captured patch +7 / −6
diff --git a/common/protob/messages.proto b/common/protob/messages.proto
index 8fed5505f..981dc02dc 100644
--- a/common/protob/messages.proto
+++ b/common/protob/messages.proto
@@ -186,6 +186,7 @@ enum MessageType {
MessageType_LiskPublicKey = 122 [(wire_out) = true];
*/
reserved 114 to 122;
+ reserved 123 to 149; // reserved for internal use
// Tezos
MessageType_TezosGetAddress = 150 [(wire_in) = true];
diff --git a/rust/trezor-client/src/protos/generated/messages.rs b/rust/trezor-client/src/protos/generated/messages.rs
index 68402db76..668a01c5d 100644
--- a/rust/trezor-client/src/protos/generated/messages.rs
+++ b/rust/trezor-client/src/protos/generated/messages.rs
@@ -1626,7 +1626,7 @@ impl MessageType {
}
static file_descriptor_proto_data: &'static [u8] = b"\
- \n\x0emessages.proto\x12\x12hw.trezor.messages\x1a\roptions.proto*\xf8Y\
+ \n\x0emessages.proto\x12\x12hw.trezor.messages\x1a\roptions.proto*\xffY\
\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\
@@ -1922,11 +1922,11 @@ static file_descriptor_proto_data: &'static [u8] = b"\
\x04\x80\xa6\x1d\x01\x12#\n\x18MessageType_BenchmarkRun\x10\x8eG\x1a\x04\
\x80\xa6\x1d\x01\x12&\n\x1bMessageType_BenchmarkResult\x10\x8fG\x1a\x04\
\x80\xa6\x1d\x01\x1a\x08\xc8\xf3\x18\x01\xd0\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\x02\"\x06\x08\xbc\x05\x10\xc5\x05\"\x06\x08\xe9\x07\x10\xf7\x07\
- \"\x06\x08\xfa\x07\x10\xcb\x08B8\n#com.satoshilabs.trezor.lib.protobufB\
- \rTrezorMessage\x80\xa6\x1d\x01\
+ \\\"\x04\x08G\x10J\"\x04\x08r\x10z\"\x05\x08{\x10\x95\x01\"\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\x02\"\x06\x08\xbc\x05\x10\xc5\x05\"\x06\
+ \x08\xe9\x07\x10\xf7\x07\"\x06\x08\xfa\x07\x10\xcb\x08B8\n#com.satoshila\
+ bs.trezor.lib.protobufB\rTrezorMessage\x80\xa6\x1d\x01\
";
/// `FileDescriptorProto` object which was a source for this generated file
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.