-
Notifications
You must be signed in to change notification settings - Fork 340
Open
Description
Description
We are integrating TronWeb into our dApp (near-intents.org). When signing a message via Ledger, verification fails if the signed message length exceeds 255 bytes.
It seems that the current Ledger C implementation splits the data into packets, and the part of the message beyond 255 bytes is moved into the next packet. That "tail" portion is not included in verification, which leads to invalid signatures.
Steps to Reproduce
- Use Ledger with TronWeb to sign a message longer than 255 bytes.
- Attempt to verify the signed message.
- Verification fails.
Expected Behavior
- The entire message (including any data beyond 255 bytes) should be included in the signature and verifiable.
Actual Behavior
- Signature verification fails when the message length exceeds 255 bytes.
Environment
- tronweb: ^6.0.4
- @tronweb3/tronwallet-adapter-react-hooks: 1.1.10
- Ledger: ledger nano x + firmware latest
- Browser/OS: Chrome 140.0.7339.186 / macOS Sequoia 15.16.1
DmytroShalaiev
Metadata
Metadata
Assignees
Labels
No labels