Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
debugging 'bad key handle' error for ledger signer
Browse files Browse the repository at this point in the history
Try using SIGN_PERSONAL_MESSAGE
  • Loading branch information
Ryanmtate committed Oct 7, 2021
1 parent 61a153d commit 568babc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethers-signers/src/ledger/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl Signer for LedgerEthereum {
.encode_eip712()
.map_err(|e| Self::Error::Eip712Error(e.to_string()))?;

let sig = self.sign_payload(INS::SIGN, hash.into()).await?;
let sig = self.sign_payload(INS::SIGN_PERSONAL_MESSAGE, hash.into()).await?;

Ok(sig)
}
Expand Down

0 comments on commit 568babc

Please sign in to comment.