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

The length of the self being absorbed.

Provided methods

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.

Converts the object into field elements along with its length information that can be absorbed by a CryptographicSponge. Append the list to dest

Implementations on Foreign Types

Implementors