Trait ark_sponge::Absorb [−][src]
pub trait Absorb { fn to_sponge_bytes(&self, dest: &mut Vec<u8>); fn to_sponge_field_elements<F: PrimeField>(&self, dest: &mut Vec<F>); fn to_sponge_bytes_as_vec(&self) -> Vec<u8> { ... } fn to_sponge_field_elements_as_vec<F: PrimeField>(&self) -> Vec<F> { ... } fn batch_to_sponge_bytes(batch: &[Self], dest: &mut Vec<u8>)
where
Self: Sized, { ... } fn batch_to_sponge_bytes_as_vec(batch: &[Self]) -> Vec<u8>
where
Self: Sized, { ... } fn batch_to_sponge_field_elements<F: PrimeField>(
batch: &[Self],
dest: &mut Vec<F>
)
where
Self: Sized, { ... } fn batch_to_sponge_field_elements_as_vec<F: PrimeField>(
batch: &[Self]
) -> Vec<F>
where
Self: Sized, { ... } }
Expand description
An interface for objects that can be absorbed by a CryptographicSponge
.
Required methods
fn to_sponge_bytes(&self, dest: &mut Vec<u8>)
[src]
fn to_sponge_bytes(&self, dest: &mut Vec<u8>)
[src]Converts the object into a list of bytes that can be absorbed by a CryptographicSponge
.
Append the list to dest
.
fn to_sponge_field_elements<F: PrimeField>(&self, dest: &mut Vec<F>)
[src]
fn to_sponge_field_elements<F: PrimeField>(&self, dest: &mut Vec<F>)
[src]Converts the object into field elements that can be absorbed by a CryptographicSponge
.
Append the list to dest
Provided methods
fn to_sponge_bytes_as_vec(&self) -> Vec<u8>
[src]
fn to_sponge_bytes_as_vec(&self) -> Vec<u8>
[src]Converts the object into a list of bytes that can be absorbed by a CryptographicSponge
.
Return the list as Vec
.
fn to_sponge_field_elements_as_vec<F: PrimeField>(&self) -> Vec<F>
[src]
fn to_sponge_field_elements_as_vec<F: PrimeField>(&self) -> Vec<F>
[src]Converts the object into field elements that can be absorbed by a CryptographicSponge
.
Return the list as Vec
Specifies the conversion into a list of bytes for a batch. Append the list to dest
.
Specifies the conversion into a list of bytes for a batch. Return the list as Vec
.
fn batch_to_sponge_field_elements<F: PrimeField>(
batch: &[Self],
dest: &mut Vec<F>
) where
Self: Sized,
[src]
fn batch_to_sponge_field_elements<F: PrimeField>(
batch: &[Self],
dest: &mut Vec<F>
) where
Self: Sized,
[src]Specifies the conversion into a list of field elements for a batch. Append the list to dest
.
fn batch_to_sponge_field_elements_as_vec<F: PrimeField>(
batch: &[Self]
) -> Vec<F> where
Self: Sized,
[src]
fn batch_to_sponge_field_elements_as_vec<F: PrimeField>(
batch: &[Self]
) -> Vec<F> where
Self: Sized,
[src]Specifies the conversion into a list of field elements for a batch. Append the list to dest
.
Implementations on Foreign Types
fn batch_to_sponge_field_elements<F: PrimeField>(
batch: &[Self],
dest: &mut Vec<F>
) where
Self: Sized,
[src]fn batch_to_sponge_field_elements<F: PrimeField>(
batch: &[Self],
dest: &mut Vec<F>
) where
Self: Sized,
[src]fn batch_to_sponge_field_elements<F: PrimeField>(
batch: &[Self],
dest: &mut Vec<F>
) where
Self: Sized,
[src]fn batch_to_sponge_field_elements<F: PrimeField>(
batch: &[Self],
dest: &mut Vec<F>
) where
Self: Sized,
[src]fn batch_to_sponge_field_elements<F: PrimeField>(
batch: &[Self],
dest: &mut Vec<F>
) where
Self: Sized,
[src]