crypto: remove hardcoded value for secp256k1.N (#30126)

pull/30142/head
zhiqiangxu 2 months ago committed by GitHub
parent 2d9d423764
commit c4b4d05e69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      crypto/crypto.go

@ -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))
)

Loading…
Cancel
Save