this.curve = curve; this.g = g; this.n = n; this.h = h; this.seed = seed;
if (!(seq.getObjectAt(0) instanceof DERInteger) || !((DERInteger)seq.getObjectAt(0)).getValue().equals(ONE)) { throw new IllegalArgumentException("bad version in X9ECParameters"); }
    public X9ECParameters(        ECCurve     curve,        ECPoint     g,        BigInteger  n,        BigInteger  h,        byte[]      seed)    {        this.curve = curve;        this.g = g;        this.n = n;        this.h = h;        this.seed = seed;        if (curve instanceof ECCurve.Fp)        {            this.fieldID = new X9FieldID(prime_field, ((ECCurve.Fp)curve).getQ());        }        else        {            this.fieldID = new X9FieldID(characteristic_two_field, null);        }    }