module Curve.Binary.SECT163K1
( module Curve.Binary
, module Curve.Binary.SECT163K1
, Point(..)
) where
import Protolude
import BinaryField
import PrimeField
import Curve.Binary
data SECT163K1
type F2m = BinaryField 0x800000000000000000000000000000000000000c9
type Fr = PrimeField 0x4000000000000000000020108a2e0cc0d99f8a5ef
instance Curve 'Binary c SECT163K1 F2m Fr => BCurve c SECT163K1 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 SECT163K1 F2m Fr
instance BACurve SECT163K1 F2m Fr where
gA_ = gA
{-# INLINABLE gA_ #-}
type PP = BPPoint SECT163K1 F2m Fr
instance BPCurve SECT163K1 F2m Fr where
gP_ = gP
{-# INLINABLE gP_ #-}
_a :: F2m
_a = 0x1
{-# INLINABLE _a #-}
_b :: F2m
_b = 0x1
{-# INLINABLE _b #-}
_h :: Integer
_h = 0x2
{-# INLINABLE _h #-}
_p :: Integer
_p = 0x800000000000000000000000000000000000000c9
{-# INLINABLE _p #-}
_r :: Integer
_r = 0x4000000000000000000020108a2e0cc0d99f8a5ef
{-# INLINABLE _r #-}
_x :: F2m
_x = 0x2fe13c0537bbc11acaa07d793de4e6d5e5c94eee8
{-# INLINABLE _x #-}
_y :: F2m
_y = 0x289070fb05d38ff58321f2e800536d538ccdaa3d9
{-# INLINABLE _y #-}
gA :: PA
gA = A _x _y
{-# INLINABLE gA #-}
gP :: PP
gP = P _x _y 1
{-# INLINABLE gP #-}