1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/math/ec/custom/sec/SecP256K1Curve.cs b/crypto/src/math/ec/custom/sec/SecP256K1Curve.cs
index bdda5a1b9..26c788b5f 100644
--- a/crypto/src/math/ec/custom/sec/SecP256K1Curve.cs
+++ b/crypto/src/math/ec/custom/sec/SecP256K1Curve.cs
@@ -8,8 +8,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec
internal class SecP256K1Curve
: AbstractFpCurve
{
- public static readonly BigInteger q = new BigInteger(1,
- Hex.Decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F"));
+ public static readonly BigInteger q = SecP256K1FieldElement.Q;
private const int SECP256K1_DEFAULT_COORDS = COORD_JACOBIAN;
private const int SECP256K1_FE_INTS = 8;
|