Module bls12_381

Source
Expand description

BLS12-381 pairing-friendly elliptic curve implementation.

Warning: Unaudited implementation. Use at your own risk.

Structs§

Bls12
BLS12-381 pairing engine marker.
Bls12_381Scalar
Scalar field element of BLS12-381 Internal: Four 64-bit limbs in little-endian Montgomery form
G1Affine
G₁ affine point representation.
G1Projective
G₁ projective point representation.
G2Affine
G₂ affine point representation.
G2Prepared
Pre-computed G2 for efficient multi-pairing.
G2Projective
G₂ projective point representation.
Gt
Target group G_T element.
MillerLoopResult
Miller loop result - must be finalized via .final_exponentiation() for comparison.

Functions§

multi_miller_loop
Multi-pairing computation in single Miller loop.
pairing
Computes the BLS12-381 pairing.