forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: reduce tendermint deps (backport cosmos#14616) (cosmos#14663)
Co-authored-by: Julien Robert <julien@rbrt.fr>
- Loading branch information
1 parent
712188a
commit 2645664
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package keys | ||
|
||
import ( | ||
"math/big" | ||
|
||
"github.com/cosmos/cosmos-sdk/crypto/keys/internal/ecdsa" | ||
) | ||
|
||
// Replicates https://github.com/cosmos/cosmos-sdk/blob/44fbb0df9cea049d588e76bf930177d777552cf3/crypto/ledger/ledger_secp256k1.go#L228 | ||
// DO NOT USE. This is a temporary workaround that is cleaned-up in v0.47+ | ||
func IsOverHalfOrder(sigS *big.Int) bool { | ||
return !ecdsa.IsSNormalized(sigS) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters