Module bls_on_arkworks::types
source · Expand description
Types and type aliases for BLS operations.
Type Aliases
- Type representing the result of a pairing
- Type alias for
Fq
, a field holding elements with a coefficient inBLSFr
- Type alias for
Fq2
, a field representing a set of polynomials with 2 coefficients inBLSFq
- Type alias for BLS’ base field
- Our hash function of choice is SHA-256
- Represents a point in G1 (affine coordinates)
- Represents a point in G1 (projective coordinates)
- Represents a point in G2 (affine coordinates)
- Represents a point in G2 (projective coordinates)
- The spec often talks about “octets strings”. We alias
Vec<u8>
to have the code read closer to the spec. - Represents a point in G1 (we’re using the “minimal-pubkey-size” variant of the BLS spec)
- A secret key is an integer between 0 and the base field modulus In other words: a field element. To obtain a
SecretKey
from bytes, usesuper::os2ip
. - Represents a points in G2 (we’re using the “minimal-pubkey-size” variant of the BLS spec)