mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-22 15:59:26 +00:00
crypto: remove hardcoded value for secp256k1.N (#30126)
This commit is contained in:
parent
2d9d423764
commit
c4b4d05e69
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ const RecoveryIDOffset = 64
|
||||||
const DigestLength = 32
|
const DigestLength = 32
|
||||||
|
|
||||||
var (
|
var (
|
||||||
secp256k1N, _ = new(big.Int).SetString("fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", 16)
|
secp256k1N = S256().Params().N
|
||||||
secp256k1halfN = new(big.Int).Div(secp256k1N, big.NewInt(2))
|
secp256k1halfN = new(big.Int).Div(secp256k1N, big.NewInt(2))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue