pub struct VerifierFile<N: Network> { /* private fields */ }Implementations§
Source§impl<N: Network> VerifierFile<N>
impl<N: Network> VerifierFile<N>
Sourcepub fn create(
directory: &Path,
function_name: &Identifier<N>,
verifying_key: VerifyingKey<N>,
) -> Result<Self>
pub fn create( directory: &Path, function_name: &Identifier<N>, verifying_key: VerifyingKey<N>, ) -> Result<Self>
Creates a new verifying key file, given the directory path, function name, and verifying key.
Sourcepub fn open(directory: &Path, function_name: &Identifier<N>) -> Result<Self>
pub fn open(directory: &Path, function_name: &Identifier<N>) -> Result<Self>
Opens the verifier file, given the directory path and function name.
Sourcepub fn exists_at(directory: &Path, function_name: &Identifier<N>) -> bool
pub fn exists_at(directory: &Path, function_name: &Identifier<N>) -> bool
Returns true if the verifier file for the given function name exists at the given directory.
Sourcepub const fn function_name(&self) -> &Identifier<N>
pub const fn function_name(&self) -> &Identifier<N>
Returns the function name.
Sourcepub const fn verifying_key(&self) -> &VerifyingKey<N>
pub const fn verifying_key(&self) -> &VerifyingKey<N>
Returns the verifying key.
Trait Implementations§
Source§impl<N: Network> FromBytes for VerifierFile<N>
impl<N: Network> FromBytes for VerifierFile<N>
Auto Trait Implementations§
impl<N> Freeze for VerifierFile<N>
impl<N> RefUnwindSafe for VerifierFile<N>where
<N as Environment>::Field: RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
impl<N> Send for VerifierFile<N>
impl<N> Sync for VerifierFile<N>
impl<N> Unpin for VerifierFile<N>
impl<N> UnwindSafe for VerifierFile<N>where
<N as Environment>::Field: UnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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