Skip to content

Conversation

AngelCastilloB
Copy link
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 mirceahasegan, mkazlauskas, rhyslbw and iccicci and removed request for mirceahasegan June 25, 2025 06:48
Copy link
Collaborator

@iccicci iccicci left a comment

Choose a reason for hiding this comment

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

Minimal and effective: excellent!

Copy link
Collaborator

@mirceahasegan mirceahasegan left a comment

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
Copy link

@paluh paluh left a comment

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