Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- newtype PBuiltinBLS12_381_G1_Element s = PBuiltinBLS12_381_G1_Element (Term s POpaque)
- newtype PBuiltinBLS12_381_G2_Element s = PBuiltinBLS12_381_G2_Element (Term s POpaque)
- newtype PBuiltinBLS12_381_MlResult s = PBuiltinBLS12_381_MlResult (Term s POpaque)
- pbls12_381_G1_add :: Term s (PBuiltinBLS12_381_G1_Element :--> (PBuiltinBLS12_381_G1_Element :--> PBuiltinBLS12_381_G1_Element))
- pbls12_381_G1_scalarMul :: Term s (PInteger :--> (PBuiltinBLS12_381_G1_Element :--> PBuiltinBLS12_381_G1_Element))
- pbls12_381_G1_neg :: Term s (PBuiltinBLS12_381_G1_Element :--> PBuiltinBLS12_381_G1_Element)
- pbls12_381_G1_compress :: Term s (PBuiltinBLS12_381_G1_Element :--> PByteString)
- pbls12_381_G1_uncompress :: Term s (PByteString :--> PBuiltinBLS12_381_G1_Element)
- pbls12_381_G1_hashToGroup :: Term s (PByteString :--> (PByteString :--> PBuiltinBLS12_381_G1_Element))
- pbls12_381_G1_compressed_zero :: Term s PByteString
- pbls12_381_G1_compressed_generator :: Term s PByteString
- pbls12_381_G2_add :: Term s (PBuiltinBLS12_381_G2_Element :--> (PBuiltinBLS12_381_G2_Element :--> PBuiltinBLS12_381_G2_Element))
- pbls12_381_G2_scalarMul :: Term s (PInteger :--> (PBuiltinBLS12_381_G2_Element :--> PBuiltinBLS12_381_G2_Element))
- pbls12_381_G2_neg :: Term s (PBuiltinBLS12_381_G2_Element :--> PBuiltinBLS12_381_G2_Element)
- pbls12_381_G2_compress :: Term s (PBuiltinBLS12_381_G2_Element :--> PByteString)
- pbls12_381_G2_uncompress :: Term s (PByteString :--> PBuiltinBLS12_381_G2_Element)
- pbls12_381_G2_hashToGroup :: Term s (PByteString :--> (PByteString :--> PBuiltinBLS12_381_G2_Element))
- pbls12_381_G2_compressed_zero :: Term s PByteString
- pbls12_381_G2_compressed_generator :: Term s PByteString
- pbls12_381_millerLoop :: Term s (PBuiltinBLS12_381_G1_Element :--> (PBuiltinBLS12_381_G2_Element :--> PBuiltinBLS12_381_MlResult))
- pbls12_381_mulMlResult :: Term s (PBuiltinBLS12_381_MlResult :--> (PBuiltinBLS12_381_MlResult :--> PBuiltinBLS12_381_MlResult))
- pbls12_381_finalVerify :: Term s (PBuiltinBLS12_381_MlResult :--> (PBuiltinBLS12_381_MlResult :--> PBool))
Documentation
newtype PBuiltinBLS12_381_G1_Element s Source #
A point on the BLS12-381 G1 curve.
Since: 1.9.0
Instances
newtype PBuiltinBLS12_381_G2_Element s Source #
Since: 1.9.0
Instances
newtype PBuiltinBLS12_381_MlResult s Source #
Represents the result of a Miller loop operation in BLS12-381 pairing.
Since: 1.9.0
Instances
pbls12_381_G1_add :: Term s (PBuiltinBLS12_381_G1_Element :--> (PBuiltinBLS12_381_G1_Element :--> PBuiltinBLS12_381_G1_Element)) Source #
Add two points on the BLS12-381 G1 curve.
Since: 1.9.0
pbls12_381_G1_scalarMul :: Term s (PInteger :--> (PBuiltinBLS12_381_G1_Element :--> PBuiltinBLS12_381_G1_Element)) Source #
Multiply a point on the BLS12-381 G1 curve by a scalar.
Since: 1.9.0
pbls12_381_G1_neg :: Term s (PBuiltinBLS12_381_G1_Element :--> PBuiltinBLS12_381_G1_Element) Source #
Negate a point on the BLS12-381 G1 curve.
Since: 1.9.0
pbls12_381_G1_compress :: Term s (PBuiltinBLS12_381_G1_Element :--> PByteString) Source #
Compress a point on the BLS12-381 G1 curve to a byte string.
Since: 1.9.0
pbls12_381_G1_uncompress :: Term s (PByteString :--> PBuiltinBLS12_381_G1_Element) Source #
Uncompress a byte string to a point on the BLS12-381 G1 curve.
Since: 1.9.0
pbls12_381_G1_hashToGroup :: Term s (PByteString :--> (PByteString :--> PBuiltinBLS12_381_G1_Element)) Source #
Hash a message to a point on the BLS12-381 G1 curve.
Since: 1.9.0
pbls12_381_G1_compressed_zero :: Term s PByteString Source #
The compressed representation of the zero point on the BLS12-381 G1 curve.
Since: 1.9.0
pbls12_381_G1_compressed_generator :: Term s PByteString Source #
The compressed representation of the generator point on the BLS12-381 G1 curve.
Since: 1.9.0
pbls12_381_G2_add :: Term s (PBuiltinBLS12_381_G2_Element :--> (PBuiltinBLS12_381_G2_Element :--> PBuiltinBLS12_381_G2_Element)) Source #
Add two points on the BLS12-381 G2 curve.
Since: 1.9.0
pbls12_381_G2_scalarMul :: Term s (PInteger :--> (PBuiltinBLS12_381_G2_Element :--> PBuiltinBLS12_381_G2_Element)) Source #
Multiply a point on the BLS12-381 G2 curve by a scalar.
Since: 1.9.0
pbls12_381_G2_neg :: Term s (PBuiltinBLS12_381_G2_Element :--> PBuiltinBLS12_381_G2_Element) Source #
Negate a point on the BLS12-381 G2 curve.
Since: 1.9.0
pbls12_381_G2_compress :: Term s (PBuiltinBLS12_381_G2_Element :--> PByteString) Source #
Compress a point on the BLS12-381 G2 curve to a byte string.
Since: 1.9.0
pbls12_381_G2_uncompress :: Term s (PByteString :--> PBuiltinBLS12_381_G2_Element) Source #
Uncompress a byte string to a point on the BLS12-381 G2 curve.
Since: 1.9.0
pbls12_381_G2_hashToGroup :: Term s (PByteString :--> (PByteString :--> PBuiltinBLS12_381_G2_Element)) Source #
Hash a message to a point on the BLS12-381 G2 curve.
Since: 1.9.0
pbls12_381_G2_compressed_zero :: Term s PByteString Source #
The compressed representation of the zero point on the BLS12-381 G2 curve.
Since: 1.9.0
pbls12_381_G2_compressed_generator :: Term s PByteString Source #
The compressed representation of the generator point on the BLS12-381 G2 curve.
Since: 1.9.0
pbls12_381_millerLoop :: Term s (PBuiltinBLS12_381_G1_Element :--> (PBuiltinBLS12_381_G2_Element :--> PBuiltinBLS12_381_MlResult)) Source #
Perform a Miller loop operation on a G1 and G2 element.
Since: 1.9.0
pbls12_381_mulMlResult :: Term s (PBuiltinBLS12_381_MlResult :--> (PBuiltinBLS12_381_MlResult :--> PBuiltinBLS12_381_MlResult)) Source #
Multiply two Miller loop results.
Since: 1.9.0
pbls12_381_finalVerify :: Term s (PBuiltinBLS12_381_MlResult :--> (PBuiltinBLS12_381_MlResult :--> PBool)) Source #
Perform the final verification step in BLS12-381 pairing.
Since: 1.9.0