halo2curves_axiom::bls12_381::hash_to_curve

Trait InitExpandMessage

Source
pub trait InitExpandMessage<'x> {
    type Expander: ExpandMessageState<'x>;

    // Required method
    fn init_expand(
        message: &[u8],
        dst: &'x [u8],
        len_in_bytes: usize,
    ) -> Self::Expander;
}
Expand description

Trait for constructing a new message expander.

Required Associated Types§

Source

type Expander: ExpandMessageState<'x>

The state object used during message expansion.

Required Methods§

Source

fn init_expand( message: &[u8], dst: &'x [u8], len_in_bytes: usize, ) -> Self::Expander

Initializes a message expander.

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§

Source§

impl<'x, H> InitExpandMessage<'x> for ExpandMsgXmd<H>
where H: Digest + BlockSizeUser,

Source§

type Expander = ExpandMsgXmdState<'x, H>

Source§

impl<'x, H> InitExpandMessage<'x> for ExpandMsgXof<H>