Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- module Curve.Weierstrass
- type PP = WPPoint BN254 Fq Fr
- type PJ = WJPoint BN254 Fq Fr
- type PA = WAPoint BN254 Fq Fr
- type Fr = PrimeField 21888242871839275222246405745257275088548364400416034343698204186575808495617
- type Fq = PrimeField 21888242871839275222246405745257275088696311157297823662689037894645226208583
- data BN254
- _a :: Fq
- _b :: Fq
- _h :: Integer
- _q :: Integer
- _r :: Integer
- _x :: Fq
- _y :: Fq
- gA :: PA
- gJ :: PJ
- gP :: PP
Documentation
module Curve.Weierstrass
type Fr = PrimeField 21888242871839275222246405745257275088548364400416034343698204186575808495617 Source #
Field of coefficients of BN254 curve.
type Fq = PrimeField 21888242871839275222246405745257275088696311157297823662689037894645226208583 Source #
Field of points of BN254 curve.
BN254 curve.
Instances
WPCurve BN254 Fq Fr Source # | Projective BN254 curve is a Weierstrass projective curve. |
WJCurve BN254 Fq Fr Source # | Jacobian BN254 curve is a Weierstrass Jacobian curve. |
WACurve BN254 Fq Fr Source # | Affine BN254 curve is a Weierstrass affine curve. |
Curve Weierstrass c BN254 Fq Fr => WCurve c BN254 Fq Fr Source # | BN254 curve is a Weierstrass curve. |