pub trait FromHash
where Self: Sized,
{ // Required method fn hash_concat(tag: Tag<'_>, message: &[&[u8]]) -> Result<Self, HashError>; // Provided method fn hash(tag: Tag<'_>, message: &[u8]) -> Result<Self, HashError> { ... } }
Expand description

Hash to curve primitive

Required Methods§

source

fn hash_concat(tag: Tag<'_>, message: &[&[u8]]) -> Result<Self, HashError>

Computes H(message[0] || ... || message[len - 1])

Provided Methods§

source

fn hash(tag: Tag<'_>, message: &[u8]) -> Result<Self, HashError>

Computes H(message)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<E> FromHash for Point<E>
where E: Curve + HashToCurve,

source§

impl<E> FromHash for Scalar<E>
where E: Curve + HashToCurve,