Trait ark_sponge::AbsorbWithLength [−][src]
pub trait AbsorbWithLength: Absorb { fn absorb_length(&self) -> usize; fn to_sponge_bytes_with_length(&self, dest: &mut Vec<u8>) { ... } fn to_sponge_field_elements_with_length<F: PrimeField>(
&self,
dest: &mut Vec<F>
) { ... } }
Expand description
An extension to Absorb
that is specific to items with variable length, such as a list.
Required methods
fn absorb_length(&self) -> usize
[src]
fn absorb_length(&self) -> usize
[src]The length of the self
being absorbed.
Provided methods
fn to_sponge_bytes_with_length(&self, dest: &mut Vec<u8>)
[src]
fn to_sponge_bytes_with_length(&self, dest: &mut Vec<u8>)
[src]Converts the object into a list of bytes along with its length information
that can be absorbed by a CryptographicSponge
.
Append the list to dest
.
fn to_sponge_field_elements_with_length<F: PrimeField>(&self, dest: &mut Vec<F>)
[src]
fn to_sponge_field_elements_with_length<F: PrimeField>(&self, dest: &mut Vec<F>)
[src]Converts the object into field elements along with its length information
that can be absorbed by a CryptographicSponge
.
Append the list to dest