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