pairing-0.3.1: Optimal ate pairing over Barreto-Naehrig curves

Safe HaskellNone
LanguageHaskell2010

Pairing.CyclicGroup

Synopsis

Documentation

class AsInteger a where Source #

Methods

asInteger :: a -> Integer Source #

Instances
AsInteger Int Source # 
Instance details

Defined in Pairing.CyclicGroup

AsInteger Integer Source # 
Instance details

Defined in Pairing.CyclicGroup

AsInteger Fr Source # 
Instance details

Defined in Pairing.Fr

Methods

asInteger :: Fr -> Integer Source #

AsInteger Fq Source # 
Instance details

Defined in Pairing.Fq

Methods

asInteger :: Fq -> Integer Source #

class Monoid g => CyclicGroup g where Source #

Methods

generator :: g Source #

order :: Proxy g -> Integer Source #

expn :: AsInteger e => g -> e -> g Source #

inverse :: g -> g Source #

random :: MonadRandom m => g -> m g Source #

Instances
CyclicGroup GT Source # 
Instance details

Defined in Pairing.Group

CyclicGroup G2 Source # 
Instance details

Defined in Pairing.Group

CyclicGroup G1 Source # 
Instance details

Defined in Pairing.Group

sumG :: (Foldable t, CyclicGroup g) => t g -> g Source #

Sum all the elements of some container according to its group structure.

class FromX a where Source #

Methods

yFromX :: a -> LargestY -> Maybe a Source #

isLargestY :: a -> Bool Source #

Instances
FromX Fq Source # 
Instance details

Defined in Pairing.Fq

Methods

yFromX :: Fq -> LargestY -> Maybe Fq Source #

isLargestY :: Fq -> Bool Source #

FromX Fq2 Source # 
Instance details

Defined in Pairing.Fq2

Methods

yFromX :: Fq2 -> LargestY -> Maybe Fq2 Source #

isLargestY :: Fq2 -> Bool Source #

class Validate a where Source #

Methods

isValidElement :: a -> Bool Source #

Instances
Validate GT Source # 
Instance details

Defined in Pairing.Group

Validate G2 Source # 
Instance details

Defined in Pairing.Group

Validate G1 Source # 
Instance details

Defined in Pairing.Group