pub struct ProverState<H = StdHash, R = StdRng>{ /* private fields */ }Implementations§
Source§impl<H> ProverState<H, StdRng>where
H: DuplexSpongeInterface,
impl<H> ProverState<H, StdRng>where
H: DuplexSpongeInterface,
Source§impl ProverState<StdHash, StdRng>
impl ProverState<StdHash, StdRng>
Sourcepub fn new_std<I>(ds: &DomainSeparator<'_, I>) -> Self
pub fn new_std<I>(ds: &DomainSeparator<'_, I>) -> Self
Construct a new prover state with the standard duplex hash function.
Source§impl<H, R> ProverState<H, R>
impl<H, R> ProverState<H, R>
Sourcepub fn rng(&mut self) -> &mut (impl RngCore + CryptoRng)
pub fn rng(&mut self) -> &mut (impl RngCore + CryptoRng)
Access the prover’s private transcript-bound RNG.
pub fn prover_message<T>(&mut self, message: &T)
pub fn prover_hint<T>(&mut self, hint: &T)where
T: NargSerialize,
pub fn prover_hint_ark<T>(&mut self, value: &T)where
T: CanonicalSerialize + ?Sized,
pub fn proof(self) -> Proof
Trait Implementations§
Source§impl<H, R> VerifierMessage for ProverState<H, R>
impl<H, R> VerifierMessage for ProverState<H, R>
Auto Trait Implementations§
impl<H, R> Freeze for ProverState<H, R>where
ProverState<H, R>: Freeze,
impl<H, R> RefUnwindSafe for ProverState<H, R>where
ProverState<H, R>: RefUnwindSafe,
impl<H, R> Send for ProverState<H, R>where
ProverState<H, R>: Send,
impl<H, R> Sync for ProverState<H, R>where
ProverState<H, R>: Sync,
impl<H, R> Unpin for ProverState<H, R>where
ProverState<H, R>: Unpin,
impl<H, R> UnsafeUnpin for ProverState<H, R>where
ProverState<H, R>: UnsafeUnpin,
impl<H, R> UnwindSafe for ProverState<H, R>where
ProverState<H, R>: 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