Expand description
This module implements hash_to_curve, hash_to_field and related hashing primitives for use with BLS signatures.
Source: https://github.com/privacy-scaling-explorations/bls12_381
Structs§
- Expand
MsgXmd - Constructor for
expand_message_xmd
for a given digest hash function, message, DST, and output length. - Expand
MsgXof - A generator for the output of
expand_message_xof
for a given extendable hash function, message, DST, and output length.
Traits§
- Expand
Message - A trait for message expansion methods supported by hash-to-curve.
- Expand
Message State - Trait for types implementing the
expand_message
interface forhash_to_field
. - Hash
ToCurve - Implementation of random oracle maps to the curve.
- Hash
ToField - Enables a byte string to be hashed into one or more field elements for a given curve.
- Init
Expand Message - Trait for constructing a new message expander.
- MapTo
Curve - Allow conversion from the output of hashed or encoded input into points on the curve