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