aztec-nr - protocol_types::abis::sponge_blob

Struct SpongeBlob

pub struct SpongeBlob {
    pub sponge: Poseidon2Sponge,
    pub fields: u32,
    pub expected_fields: u32,
}

Fields

sponge: Poseidon2Sponge
fields: u32
expected_fields: u32

Implementations

impl SpongeBlob

pub fn new_full_blobs() -> Self pub fn new(expected_fields_hint: u32) -> Self pub fn absorb<let N: u32>(&mut self, input: [Field; N], in_len: u32) pub fn squeeze(&mut self) -> Field

Trait implementations

impl Deserialize for SpongeBlob

pub fn deserialize(serialized: [Field; 11]) -> Self

impl Empty for SpongeBlob

pub fn empty() -> Self pub fn is_empty(self) -> bool pub fn assert_empty<let S: u32>(self, msg: str<S>)

impl Eq for SpongeBlob

pub fn eq(_self: Self, _other: Self) -> bool

impl Serialize for SpongeBlob

pub fn serialize(self) -> [Field; 11]