Crate paired[][src]

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

ExpandMsgXmd

Placeholder type for implementing expand_message_xmd based on a hash function.

ExpandMsgXof

Placeholder type for implementing expand_message_xof based on a hash function

Enums

Sgn0Result

Result of Sgn0.

Traits

BaseFromRO

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.

HashToCurve

Random oracle and injective maps to curve.

PairingCurveAffine

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 variant X.