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

Safe HaskellSafe
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 Fq Source # 
Instance details

Defined in Pairing.Fq

Methods

asInteger :: Fq -> Integer Source #

AsInteger Fr Source # 
Instance details

Defined in Pairing.Fr

Methods

asInteger :: Fr -> 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 #

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.