Skip to content

Commit

Permalink
skip Ledger vrf
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrajovic committed Apr 1, 2024
1 parent cf75089 commit a97b65d
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 @@ -616,9 +616,10 @@ func SignWithLedger(k *Record, msg []byte) (sig []byte, pub types.PubKey, err er
return nil, nil, err
}

if !priv.PubKey().VerifySignature(msg, sig) {
return nil, nil, errors.New("Ledger generated an invalid signature. Perhaps you have multiple ledgers and need to try another one")
}
// Moved to injective-core as part of Ledger signing (see PR #1557 on injective-core repo)
//if !priv.PubKey().VerifySignature(msg, sig) {

Check failure on line 620 in crypto/keyring/keyring.go

View workflow job for this annotation

GitHub Actions / golangci-lint

commentFormatting: put a space between `//` and comment text (gocritic)

Check failure on line 620 in crypto/keyring/keyring.go

View workflow job for this annotation

GitHub Actions / Analyze

commentFormatting: put a space between `//` and comment text (gocritic)

Check failure on line 620 in crypto/keyring/keyring.go

View workflow job for this annotation

GitHub Actions / Analyze

commentFormatting: put a space between `//` and comment text (gocritic)
// return nil, nil, errors.New("Ledger generated an invalid signature. Perhaps you have multiple ledgers and need to try another one")
//}

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

0 comments on commit a97b65d

Please sign in to comment.