halo2curves_axiom::bls12_381::hash_to_curve

Trait ExpandMessageState

Source
pub trait ExpandMessageState<'x> {
    // Required methods
    fn read_into(&mut self, output: &mut [u8]) -> usize;
    fn remain(&self) -> usize;
}
Expand description

Trait for types implementing the expand_message interface for hash_to_field.

Required Methods§

Source

fn read_into(&mut self, output: &mut [u8]) -> usize

Reads bytes from the generated output.

Source

fn remain(&self) -> usize

Retrieves the number of bytes remaining in the generator.

Implementors§