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

Safe HaskellNone
LanguageHaskell2010

Pairing.Pairing

Description

Implementation of the optimal Ate pairing on the curve BN128

Synopsis

Documentation

reducedPairing :: G1 -> G2 -> GT Source #

Optimal Ate pairing (including final exponentiation step)

atePairing :: G1 -> G2 -> Fq12 Source #

Optimal Ate pairing without the final exponentiation step

finalExponentiation :: Fq12 -> GT Source #

A faster way of performing the final exponentiation step

finalExponentiationNaive :: Fq12 -> GT Source #

Naive implementation of the final exponentiation step

frobeniusNaive :: Num a => Int -> a -> a Source #

Iterated frobenius morphisms on fields of characteristic _q, implemented naively

ateLoopCountBinary :: [Bool] Source #

Binary expansion (missing the most-significant bit) representing the number 6 * _t + 2.

29793968203157093288
= 0b11001110101111001011100000011100110111110011101100011101110101000