Skip to content

Commit

Permalink
Allow ledger to sign message length 64 bytes (iotaledger#2050)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez authored Feb 22, 2024
1 parent 6b3e64f commit 4077c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/client/secret/ledger_nano.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ impl SecretManage for LedgerSecretManager {

/// Ledger only allows signing messages of 32 bytes, anything else is unsupported and will result in an error.
async fn sign_ed25519(&self, msg: &[u8], chain: Bip44) -> Result<Ed25519Signature, Self::Error> {
if msg.len() != 32 {
if msg.len() != 32 && msg.len() != 64 {
return Err(Error::UnsupportedOperation.into());
}

Expand Down

0 comments on commit 4077c17

Please sign in to comment.