Harden input validation in Stellar asset encoding, Zilliqa signing preimage, and BIP32 derivation path parsing#4790
Open
nikhil-gupta-tw wants to merge 4 commits into
Open
Harden input validation in Stellar asset encoding, Zilliqa signing preimage, and BIP32 derivation path parsing#4790nikhil-gupta-tw wants to merge 4 commits into
nikhil-gupta-tw wants to merge 4 commits into
Conversation
Summary by OctaneNew ContractsNo new contracts were added. Updated Contracts
🔗 Commit Hash: ce5c501 |
Binary size comparison➡️ aarch64-apple-ios: 14.31 MB ➡️ aarch64-apple-ios-sim: 14.32 MB ➡️ aarch64-linux-android: 18.73 MB ➡️ armv7-linux-androideabi: 16.17 MB ➡️ wasm32-unknown-emscripten: 13.66 MB |
Overview
Detailed findings
|
sergei-boiko-trustwallet
approved these changes
Jun 8, 2026
sergei-boiko-trustwallet
left a comment
Contributor
There was a problem hiding this comment.
LGTM, just a minor question
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces improved input validation and error handling for Stellar and Zilliqa transaction signing, as well as minor refactoring for data handling. The most significant changes are the addition of explicit checks for invalid parameters in Stellar asset encoding and derivation path parsing, and the propagation of errors back to the caller.
Stellar transaction signing improvements:
encodeAssetto ensurealphanum4asset codes do not exceed 4 characters, throwing aninvalid_argumentexception if violated.Signer::signmethod to catchinvalid_argumentexceptions and set error codes and messages in the output, improving error reporting for invalid signing inputs.<stdexcept>inSigner.cppto support exception handling.Derivation path validation:
DerivationPathconstructor to ensure non-hardened indices are less than 2^31, throwing an exception if not.Zilliqa transaction signing refactor:
store(load(...))pattern forgasPriceandamountfields inSigner::getPreImage, standardizing data handling. [1] [2]