Skip to content

Commit

Permalink
crypto: remove hardcoded value for secp256k1.N (#30126)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored Jul 9, 2024
1 parent 2d9d423 commit c4b4d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const RecoveryIDOffset = 64
const DigestLength = 32

var (
secp256k1N, _ = new(big.Int).SetString("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", 16)
secp256k1N = S256().Params().N
secp256k1halfN = new(big.Int).Div(secp256k1N, big.NewInt(2))
)

Expand Down

0 comments on commit c4b4d05

Please sign in to comment.