pub struct VerifierState<'a, H = StdHash>where
H: DuplexSpongeInterface,{ /* private fields */ }Implementations§
Source§impl<'a, H> VerifierState<'a, H>where
H: DuplexSpongeInterface,
impl<'a, H> VerifierState<'a, H>where
H: DuplexSpongeInterface,
pub fn new<'b, I>( ds: &DomainSeparator<'b, I>, proof: &'a Proof, duplex: H, ) -> Self
pub const fn as_spongefish(&mut self) -> &mut VerifierState<'a, H>
pub fn check_eof(self) -> VerificationResult<()>
pub fn prover_message<T>(&mut self) -> VerificationResult<T>
pub fn prover_messages_vec<T>( &mut self, len: usize, ) -> VerificationResult<Vec<T>>
pub fn prover_hint<T>(&mut self) -> VerificationResult<T>where
T: NargDeserialize,
pub fn prover_hint_ark<T>(&mut self) -> VerificationResult<T>where
T: CanonicalDeserialize,
Source§impl<'a> VerifierState<'a, StdHash>
impl<'a> VerifierState<'a, StdHash>
Trait Implementations§
Source§impl<H> VerifierMessage for VerifierState<'_, H>where
H: DuplexSpongeInterface,
impl<H> VerifierMessage for VerifierState<'_, H>where
H: DuplexSpongeInterface,
Auto Trait Implementations§
impl<'a, H> Freeze for VerifierState<'a, H>where
VerifierState<'a, H>: Freeze,
impl<'a, H> RefUnwindSafe for VerifierState<'a, H>where
VerifierState<'a, H>: RefUnwindSafe,
impl<'a, H> Send for VerifierState<'a, H>where
VerifierState<'a, H>: Send,
impl<'a, H> Sync for VerifierState<'a, H>where
VerifierState<'a, H>: Sync,
impl<'a, H> Unpin for VerifierState<'a, H>where
VerifierState<'a, H>: Unpin,
impl<'a, H> UnsafeUnpin for VerifierState<'a, H>where
VerifierState<'a, H>: UnsafeUnpin,
impl<'a, H> UnwindSafe for VerifierState<'a, H>where
VerifierState<'a, H>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more