module Curve.Binary.SECT239K1
( module Curve.Binary
, module Curve.Binary.SECT239K1
, Point(..)
) where
import Protolude
import BinaryField
import PrimeField
import Curve.Binary
data SECT239K1
type F2m = BinaryField 0x800000000000000000004000000000000000000000000000000000000001
type Fr = PrimeField 0x2000000000000000000000000000005a79fec67cb6e91f1c1da800e478a5
instance Curve 'Binary c SECT239K1 F2m Fr => BCurve c SECT239K1 F2m Fr where
a_ = const _a
{-# INLINABLE a_ #-}
b_ = const _b
{-# INLINABLE b_ #-}
h_ = const _h
{-# INLINABLE h_ #-}
p_ = const _p
{-# INLINABLE p_ #-}
r_ = const _r
{-# INLINABLE r_ #-}
x_ = const _x
{-# INLINABLE x_ #-}
y_ = const _y
{-# INLINABLE y_ #-}
type PA = BAPoint SECT239K1 F2m Fr
instance BACurve SECT239K1 F2m Fr where
gA_ = gA
{-# INLINABLE gA_ #-}
type PP = BPPoint SECT239K1 F2m Fr
instance BPCurve SECT239K1 F2m Fr where
gP_ = gP
{-# INLINABLE gP_ #-}
_a :: F2m
_a = 0x0
{-# INLINABLE _a #-}
_b :: F2m
_b = 0x1
{-# INLINABLE _b #-}
_h :: Integer
_h = 0x4
{-# INLINABLE _h #-}
_p :: Integer
_p = 0x800000000000000000004000000000000000000000000000000000000001
{-# INLINABLE _p #-}
_r :: Integer
_r = 0x2000000000000000000000000000005a79fec67cb6e91f1c1da800e478a5
{-# INLINABLE _r #-}
_x :: F2m
_x = 0x29a0b6a887a983e9730988a68727a8b2d126c44cc2cc7b2a6555193035dc
{-# INLINABLE _x #-}
_y :: F2m
_y = 0x76310804f12e549bdb011c103089e73510acb275fc312a5dc6b76553f0ca
{-# INLINABLE _y #-}
gA :: PA
gA = A _x _y
{-# INLINABLE gA #-}
gP :: PP
gP = P _x _y 1
{-# INLINABLE gP #-}