fix(common): add java-handling to solana protobuf
What changed, and why it matters
This commit only adds Java-specific metadata options to a Solana protocol-buffer definition and regenerates the matching Rust protobuf descriptor bytes. It does not change message fields, parsing logic, or any security behavior. There is no indication of a vulnerability or security fix.
No security action needed; this is a build/code-generation metadata change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff adds java_outer_classname and java_package options to common/protob/messages-solana.proto and updates the embedded file_descriptor_proto_data in rust/trezor-client/src/protos/generated/messages_solana.rs to reflect the regenerated descriptor. No field definitions, wire formats, or code paths are altered.
Changed components
common/protob/messages-solana.protorust/trezor-client/src/protos/generated/messages_solana.rsInspect captured patch +6 / −1
diff --git a/common/protob/messages-solana.proto b/common/protob/messages-solana.proto
index 1a975b28..c33591d2 100644
--- a/common/protob/messages-solana.proto
+++ b/common/protob/messages-solana.proto
@@ -3,6 +3,10 @@ package hw.trezor.messages.solana;
import "messages-common.proto";
+// Sugar for easier handling in Java
+option java_outer_classname = "TrezorMessageSolana";
+option java_package = "com.satoshilabs.trezor.lib.protobuf";
+
/**
* Request: Ask device for public key corresponding to address_n path
* @start
diff --git a/rust/trezor-client/src/protos/generated/messages_solana.rs b/rust/trezor-client/src/protos/generated/messages_solana.rs
index a315ed12..88c00ab9 100644
--- a/rust/trezor-client/src/protos/generated/messages_solana.rs
+++ b/rust/trezor-client/src/protos/generated/messages_solana.rs
@@ -1688,7 +1688,8 @@ static file_descriptor_proto_data: &'static [u8] = b"\
\x03\x20\x01(\x0b21.hw.trezor.messages.solana.SolanaTxAdditionalInfoR\
\x0eadditionalInfo\x12J\n\x0bpayment_req\x18\x04\x20\x01(\x0b2).hw.trezo\
r.messages.common.PaymentRequestR\npaymentReq\"1\n\x11SolanaTxSignature\
- \x12\x1c\n\tsignature\x18\x01\x20\x02(\x0cR\tsignature\
+ \x12\x1c\n\tsignature\x18\x01\x20\x02(\x0cR\tsignatureB:\n#com.satoshila\
+ bs.trezor.lib.protobufB\x13TrezorMessageSolana\
";
/// `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.