pairing-1.1.0: Bilinear pairings

Safe HaskellNone
LanguageHaskell2010

Data.Pairing.BN254B

Contents

Synopsis

Documentation

BN254B curve

data BN254B #

BN254B curve.

Instances
Pairing BN254B Source # 
Instance details

Defined in Data.Pairing.BN254B

Associated Types

type G1 BN254B = (g :: Type) Source #

type G2 BN254B = (g :: Type) Source #

type GT BN254B = (g :: Type) Source #

WACurve BN254B Fq2 Fr 
Instance details

Defined in Data.Curve.Weierstrass.BN254BT

Methods

gA_ :: WAPoint BN254B Fq2 Fr #

WACurve BN254B Fq Fr 
Instance details

Defined in Data.Curve.Weierstrass.BN254B

Methods

gA_ :: WAPoint BN254B Fq Fr #

WJCurve BN254B Fq2 Fr 
Instance details

Defined in Data.Curve.Weierstrass.BN254BT

Methods

gJ_ :: WJPoint BN254B Fq2 Fr #

WJCurve BN254B Fq Fr 
Instance details

Defined in Data.Curve.Weierstrass.BN254B

Methods

gJ_ :: WJPoint BN254B Fq Fr #

WPCurve BN254B Fq2 Fr 
Instance details

Defined in Data.Curve.Weierstrass.BN254BT

Methods

gP_ :: WPPoint BN254B Fq2 Fr #

WPCurve BN254B Fq Fr 
Instance details

Defined in Data.Curve.Weierstrass.BN254B

Methods

gP_ :: WPPoint BN254B Fq Fr #

Curve Weierstrass c BN254B Fq2 Fr => WCurve c BN254B Fq2 Fr 
Instance details

Defined in Data.Curve.Weierstrass.BN254BT

Curve Weierstrass c BN254B Fq Fr => WCurve c BN254B Fq Fr 
Instance details

Defined in Data.Curve.Weierstrass.BN254B

type G1 BN254B Source # 
Instance details

Defined in Data.Pairing.BN254B

type G1 BN254B = G1'
type G2 BN254B Source # 
Instance details

Defined in Data.Pairing.BN254B

type G2 BN254B = G2'
type GT BN254B Source # 
Instance details

Defined in Data.Pairing.BN254B

type GT BN254B = GT'

parameterBin :: [Int8] Source #

BN254B curve parameter s = 6t + 2 in signed binary.

parameterHex :: Integer Source #

BN254B curve parameter t in hexadecimal.

Fields

type Fq = Prime Q #

Field of points of BN254B curve.

type Fq2 = Extension U Fq #

Field of points of BN254B curve over Fq2.

type Fq6 = Extension V Fq2 Source #

Field of points of BN254B curve over Fq6.

type Fq12 = Extension W Fq6 Source #

Field of points of BN254B curve over Fq12.

type Fr = Prime R #

Field of coefficients of BN254B curve.

Groups

type G1' = PA Source #

BN254B curve left group G1 = E(Fq).

type G2' = PA Source #

BN254B curve right group G2 = E'(Fq2).

type GT' = RootsOfUnity R Fq12 Source #

Fq12 multiplicative target group GT.

Roots of unity

getRootOfUnity :: Int -> Fr Source #

Precompute primitive roots of unity for binary powers that divide r - 1.

Orphan instances

Pairing BN254B Source # 
Instance details

Associated Types

type G1 BN254B = (g :: Type) Source #

type G2 BN254B = (g :: Type) Source #

type GT BN254B = (g :: Type) Source #