public SecP256K1Curve() : base(q)
 {
     this.m_infinity = new SecP256K1Point(this, null, null);
     base.m_a        = this.FromBigInteger(BigInteger.Zero);
     base.m_b        = this.FromBigInteger(BigInteger.ValueOf(7L));
     base.m_order    = new BigInteger(1, Hex.Decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"));
     base.m_cofactor = BigInteger.One;
     base.m_coord    = 2;
 }
Beispiel #2
0
        public SecP256K1Curve()
            : base(q)
        {
            this.m_infinity = new SecP256K1Point(this, null, null);

            this.m_a        = FromBigInteger(BigInteger.Zero);
            this.m_b        = FromBigInteger(BigInteger.ValueOf(7));
            this.m_order    = new BigInteger(1, Hex.Decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"));
            this.m_cofactor = BigInteger.One;
            this.m_coord    = SECP256K1_DEFAULT_COORDS;
        }
Beispiel #3
0
        public SecP256K1Curve()
            : base(FiniteFields.GetPrimeField(q))
        {
            this.m_infinity = new SecP256K1Point(this, null, null);

            this.m_a = FromBigInteger(BigInteger.Zero);
            this.m_b = FromBigInteger(BigInteger.ValueOf(7));
            this.m_order = new BigInteger(1, Hex.Decode("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141"));
            this.m_cofactor = BigInteger.One;
            this.m_coord = SECP256K1_DEFAULT_COORDS;
        }