module Curve.Binary.SECT233K1
( module Curve.Binary
, module Curve.Binary.SECT233K1
, Point(..)
) where
import Protolude
import BinaryField
import PrimeField
import Curve.Binary
data SECT233K1
type F2m = BinaryField 0x20000000000000000000000000000000000000004000000000000000001
type Fr = PrimeField 0x8000000000000000000000000000069d5bb915bcd46efb1ad5f173abdf
instance Curve 'Binary c SECT233K1 F2m Fr => BCurve c SECT233K1 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 SECT233K1 F2m Fr
instance BACurve SECT233K1 F2m Fr where
gA_ = gA
{-# INLINABLE gA_ #-}
type PP = BPPoint SECT233K1 F2m Fr
instance BPCurve SECT233K1 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 = 0x20000000000000000000000000000000000000004000000000000000001
{-# INLINABLE _p #-}
_r :: Integer
_r = 0x8000000000000000000000000000069d5bb915bcd46efb1ad5f173abdf
{-# INLINABLE _r #-}
_x :: F2m
_x = 0x17232ba853a7e731af129f22ff4149563a419c26bf50a4c9d6eefad6126
{-# INLINABLE _x #-}
_y :: F2m
_y = 0x1db537dece819b7f70f555a67c427a8cd9bf18aeb9b56e0c11056fae6a3
{-# INLINABLE _y #-}
gA :: PA
gA = A _x _y
{-# INLINABLE gA #-}
gP :: PP
gP = P _x _y 1
{-# INLINABLE gP #-}