Skip to content

Commit

Permalink
chore(keyring): comment out Ledger sig verification
Browse files Browse the repository at this point in the history
cause it is done inside injectived

backport of f387d90
  • Loading branch information
kakysha committed Jan 29, 2025
1 parent 291cf7d commit 9103486
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crypto/keyring/keyring.go
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,10 @@ func SignWithLedger(k *Record, msg []byte, signMode signing.SignMode) (sig []byt
return nil, nil, errorsmod.Wrap(ErrInvalidSignMode, fmt.Sprintf("%v", signMode))
}

if !priv.PubKey().VerifySignature(msg, sig) {
return nil, nil, ErrLedgerInvalidSignature
}
// moved to injective-core as part of Ledger signing (PR #1557)
//if !priv.PubKey().VerifySignature(msg, sig) {
// return nil, nil, ErrLedgerInvalidSignature
//}

return sig, priv.PubKey(), nil
}
Expand Down

0 comments on commit 9103486

Please sign in to comment.