module Curve.Montgomery.M383
( module Curve.Montgomery
, module Curve.Montgomery.M383
, Point(..)
) where
import Protolude
import PrimeField
import Curve.Montgomery
data M383
type Fq = PrimeField 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff45
type Fr = PrimeField 0x10000000000000000000000000000000000000000000000006c79673ac36ba6e7a32576f7b1b249e46bbc225be9071d7
instance Curve 'Montgomery c M383 Fq Fr => MCurve c M383 Fq Fr where
a_ = const _a
{-# INLINABLE a_ #-}
b_ = const _b
{-# INLINABLE b_ #-}
h_ = const _h
{-# INLINABLE h_ #-}
q_ = const _q
{-# INLINABLE q_ #-}
r_ = const _r
{-# INLINABLE r_ #-}
x_ = const _x
{-# INLINABLE x_ #-}
y_ = const _y
{-# INLINABLE y_ #-}
type PA = MAPoint M383 Fq Fr
instance MACurve M383 Fq Fr where
gA_ = gA
{-# INLINABLE gA_ #-}
_a :: Fq
_a = 0x1f82fe
{-# INLINABLE _a #-}
_b :: Fq
_b = 0x1
{-# INLINABLE _b #-}
_h :: Integer
_h = 0x8
{-# INLINABLE _h #-}
_q :: Integer
_q = 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff45
{-# INLINABLE _q #-}
_r :: Integer
_r = 0x10000000000000000000000000000000000000000000000006c79673ac36ba6e7a32576f7b1b249e46bbc225be9071d7
{-# INLINABLE _r #-}
_x :: Fq
_x = 0xc
{-# INLINABLE _x #-}
_y :: Fq
_y = 0x1ec7ed04aaf834af310e304b2da0f328e7c165f0e8988abd3992861290f617aa1f1b2e7d0b6e332e969991b62555e77e
{-# INLINABLE _y #-}
gA :: PA
gA = A _x _y
{-# INLINABLE gA #-}