pub struct LabradorVerifier<'a> { /* private fields */ }Expand description
Implements the algorithm executed by the verifier (\mathcal{V}) in the paper.
Implementations§
Source§impl<'a> LabradorVerifier<'a>
impl<'a> LabradorVerifier<'a>
Sourcepub fn new(
params: &'a EnvironmentParameters,
crs: &'a AjtaiInstances,
st: &'a Statement,
) -> Self
pub fn new( params: &'a EnvironmentParameters, crs: &'a AjtaiInstances, st: &'a Statement, ) -> Self
Constructs a new verifier instance.
Sourcepub fn verify<S: Sponge>(
&mut self,
proof: &LabradorTranscript<S>,
) -> Result<bool, VerifierError>
pub fn verify<S: Sponge>( &mut self, proof: &LabradorTranscript<S>, ) -> Result<bool, VerifierError>
Verifies a prover transcript. Executes all verifier steps (Fig. 2 page 17, Fig. 3 page 18).
Returns Ok(true) if all checks succeed, otherwise an explanatory
VerifierError. The sponge seeded inside this routine must be
identical to the prover’s so that the generated randomizers match.
Auto Trait Implementations§
impl<'a> Freeze for LabradorVerifier<'a>
impl<'a> RefUnwindSafe for LabradorVerifier<'a>
impl<'a> Send for LabradorVerifier<'a>
impl<'a> Sync for LabradorVerifier<'a>
impl<'a> Unpin for LabradorVerifier<'a>
impl<'a> UnwindSafe for LabradorVerifier<'a>
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