Skip to content

Commit b79ea57

Browse files
committed
Fix curve order of k256
1 parent 7f4f08f commit b79ea57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/ATCryptography/Extensions/ECDSASignatureExtensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ extension secp256k1.Signing.ECDSASignature {
104104
return nil
105105
}
106106

107-
// Curve order for k256.
108-
let curveOrder = BigInt("FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551", radix: 16)!
107+
// Curve order for secp256k1 (k256).
108+
let curveOrder = BigInt("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141", radix: 16)!
109109
let halfOrder = curveOrder / 2
110110

111111
let sInt = BigInt(data: s)

0 commit comments

Comments
 (0)