HashToGroupElement

Trait HashToGroupElement 

Source
pub trait HashToGroupElement {
    // Required method
    fn hash_to_group_element(msg: &[u8]) -> Self;
}
Expand description

Trait for groups that have a standardized “hash_to_point”/“hash_to_curve” function (see [https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve#section-3].

Required Methods§

Source

fn hash_to_group_element(msg: &[u8]) -> Self

Hashes the given message and maps the result to a group element.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§