Skip to content

Commit

Permalink
btcec: set curve name in CurveParams
Browse files Browse the repository at this point in the history
Set curve name(secp256k1) in KoblitzCurve.CurveParams

Fixes #1564
  • Loading branch information
hallazzang authored and jcvernaleo committed Sep 8, 2020
1 parent 23d149c commit 8facfdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions btcec/btcec.go
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,7 @@ func initS256() {
secp256k1.Gx = fromHex("79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798")
secp256k1.Gy = fromHex("483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8")
secp256k1.BitSize = 256
secp256k1.Name = "secp256k1"
secp256k1.q = new(big.Int).Div(new(big.Int).Add(secp256k1.P,
big.NewInt(1)), big.NewInt(4))
secp256k1.H = 1
Expand Down

0 comments on commit 8facfdd

Please sign in to comment.