Skip to content

Reject sign exact solana tx in sign msg request#1152

Open
0xh3rman wants to merge 3 commits into
mainfrom
reject-sol-tx-msg-sign
Open

Reject sign exact solana tx in sign msg request#1152
0xh3rman wants to merge 3 commits into
mainfrom
reject-sol-tx-msg-sign

Conversation

@0xh3rman
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a safeguard in the Solana signer to prevent signing serialized transactions through the sign_message interface, ensuring stricter validation via new is_transaction_bytes and try_decode_transaction_bytes functions. It also refactors the MessageSigner to utilize GemChainSigner for Base58 signing. Feedback was provided regarding a security risk where calling .to_vec() on private keys creates non-zeroized copies in memory, potentially exposing sensitive data.

Comment thread gemstone/src/message/signer.rs Outdated
@0xh3rman 0xh3rman marked this pull request as draft May 24, 2026 13:58
@0xh3rman 0xh3rman marked this pull request as ready for review May 24, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant