Crate paired

Source
Expand description

A library for working with pairing-friendly curves.

Modules§

  • An implementation of the BLS12-381 pairing-friendly elliptic curve construction.

Structs§

  • Placeholder type for implementing expand_message_xmd based on a hash function.
  • Placeholder type for implementing expand_message_xof based on a hash function

Enums§

Traits§

  • Generate an element of a base field for a random string of bytes (used by FromRO for extension fields).
  • This traits enables reading and writing a compressed version.
  • 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.
  • Generate a field element from a random string of bytes.
  • Random oracle and injective maps to curve.
  • Affine representation of an elliptic curve point that can be used to perform pairings.
  • Signum computations and conditional in-place negation.

Functions§

  • Hash to field for they type T using ExpandMsg variant X.