Skip to content

Commit dd4e955

Browse files
zhiqiangxugballet
authored andcommitted
crypto: remove hardcoded value for secp256k1.N (ethereum#30126)
1 parent d0b2c1e commit dd4e955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/crypto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const RecoveryIDOffset = 64
4545
const DigestLength = 32
4646

4747
var (
48-
secp256k1N, _ = new(big.Int).SetString("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", 16)
48+
secp256k1N = S256().Params().N
4949
secp256k1halfN = new(big.Int).Div(secp256k1N, big.NewInt(2))
5050
)
5151

0 commit comments

Comments
 (0)