ECCSecp256k1 constructor

ECCSecp256k1()

Custom re-implementation of pointcastle one because of non-null seed bug.

Implementation

factory ECCSecp256k1() => constructFpStandardCurve(
    'secp256k1', ECCSecp256k1._make,
    q: BigInt.parse(
        'fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f',
        radix: 16),
    a: BigInt.parse('0', radix: 16),
    b: BigInt.parse('7', radix: 16),
    g: BigInt.parse(
        '0479be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',
        radix: 16),
    n: BigInt.parse(
        'fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141',
        radix: 16),
    h: BigInt.parse('1', radix: 16),
    seed: null) as ECCSecp256k1;