Skip to content

fix: fix long message signing on ledger#1636

Merged
AngelCastilloB merged 1 commit into
masterfrom
fix/LW-13126-fix-large-message-signing-on-ledger
Jun 25, 2025
Merged

fix: fix long message signing on ledger#1636
AngelCastilloB merged 1 commit into
masterfrom
fix/LW-13126-fix-large-message-signing-on-ledger

Conversation

@AngelCastilloB

Copy link
Copy Markdown
Member

Context

We are unable to sign long messages with the CIP-08 sign message function on ledger, this is because ledger has limited memory. For longer messages (as per CIP-08 spec) we must switch to sign the hashed message.

Proposed Solution

Detect the length of the message being signed and switch to hashed message if >= 100 in length.

@AngelCastilloB AngelCastilloB requested review from iccicci, mirceahasegan, mkazlauskas and rhyslbw and removed request for mirceahasegan June 25, 2025 06:48

@iccicci iccicci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minimal and effective: excellent!

@mirceahasegan mirceahasegan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great work @AngelCastilloB 🚀

@AngelCastilloB AngelCastilloB merged commit b9373d4 into master Jun 25, 2025
10 of 11 checks passed
@AngelCastilloB AngelCastilloB deleted the fix/LW-13126-fix-large-message-signing-on-ledger branch June 25, 2025 07:38

@paluh paluh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks a lot!

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.

4 participants