Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
ZkFold.Base.Algebra.EllipticCurve.BLS12_381
Contents
Synopsis
- type BLS12_381_Scalar = 52435875175126190479447740508185965837690552500527637822603658699938581184513
- type BLS12_381_Base = 4002409555221667393417789825735904156556882819939007885332058136124031650490837864442687629129015664037894272559787
- type Fr = Zp BLS12_381_Scalar
- type Fq = Zp BLS12_381_Base
- type IP1 = "IP1"
- type Fq2 = Ext2 Fq IP1
- type IP2 = "IP2"
- type Fq6 = Ext3 Fq2 IP2
- type IP3 = "IP3"
- type Fq12 = Ext2 Fq6 IP3
- type BLS12_381_G1_Point = Weierstrass "BLS12-381-G1" (Point Fq)
- type BLS12_381_G1_CompressedPoint = Weierstrass "BLS12-381-G1" (CompressedPoint Fq)
- type BLS12_381_G2_Point = Weierstrass "BLS12-381-G2" (Point Fq2)
- type BLS12_381_G2_CompressedPoint = Weierstrass "BLS12-381-G2" (CompressedPoint Fq2)
- leBytesOf :: Natural -> [(Natural, Word8)]
- bytesOf :: (ToConstant a, Const a ~ Natural) => Int -> a -> [Word8]
- ofBytes :: FromConstant Natural a => [Word8] -> a
- newtype BLS12_381_GT = BLS12_381_GT Fq12
Documentation
type BLS12_381_Scalar = 52435875175126190479447740508185965837690552500527637822603658699938581184513 Source #
type BLS12_381_Base = 4002409555221667393417789825735904156556882819939007885332058136124031650490837864442687629129015664037894272559787 Source #
type Fr = Zp BLS12_381_Scalar Source #
type Fq = Zp BLS12_381_Base Source #
type BLS12_381_G1_Point = Weierstrass "BLS12-381-G1" (Point Fq) Source #
type BLS12_381_G1_CompressedPoint = Weierstrass "BLS12-381-G1" (CompressedPoint Fq) Source #
type BLS12_381_G2_Point = Weierstrass "BLS12-381-G2" (Point Fq2) Source #
type BLS12_381_G2_CompressedPoint = Weierstrass "BLS12-381-G2" (CompressedPoint Fq2) Source #
newtype BLS12_381_GT Source #
An image of a pairing is a cyclic multiplicative subgroup of
of order Fq12
.BLS12_381_Scalar
Constructors
BLS12_381_GT Fq12 |