Expand description
A library for working with pairing-friendly curves.
Modules§
- bls12_
381 - An implementation of the BLS12-381 pairing-friendly elliptic curve construction.
Structs§
- Expand
MsgXmd - Placeholder type for implementing
expand_message_xmd
based on a hash function. - Expand
MsgXof - Placeholder type for implementing expand_message_xof based on a hash function
Enums§
- Sgn0
Result - Result of Sgn0.
Traits§
- Base
FromRO - Generate an element of a base field for a random string of bytes (used by FromRO for extension fields).
- Compress
- This traits enables reading and writing a compressed version.
- Engine
- An “engine” is a collection of types (fields, elliptic curve groups, etc.)
with well-defined relationships. In particular, the G1/G2 curve groups are
of prime order
r
, and are equipped with a bilinear pairing function. - FromRO
- Generate a field element from a random string of bytes.
- Hash
ToCurve - Random oracle and injective maps to curve.
- Pairing
Curve Affine - Affine representation of an elliptic curve point that can be used to perform pairings.
- Signum0
- Signum computations and conditional in-place negation.
Functions§
- hash_
to_ field - Hash to field for they type
T
using ExpandMsg variantX
.