Struct snarkvm_debug::file::ProverFile
source · pub struct ProverFile<N: Network> { /* private fields */ }Implementations§
source§impl<N: Network> ProverFile<N>
impl<N: Network> ProverFile<N>
sourcepub fn create(
directory: &Path,
function_name: &Identifier<N>,
proving_key: ProvingKey<N>
) -> Result<Self>
pub fn create( directory: &Path, function_name: &Identifier<N>, proving_key: ProvingKey<N> ) -> Result<Self>
Creates a new proving key file, given the directory path, function name, and proving 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 prover 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 prover 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 proving_key(&self) -> &ProvingKey<N>
pub const fn proving_key(&self) -> &ProvingKey<N>
Returns the proving key.
Trait Implementations§
source§impl<N: Network> FromBytes for ProverFile<N>
impl<N: Network> FromBytes for ProverFile<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for ProverFile<N>where
<N as Environment>::Field: RefUnwindSafe,
<<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe,
impl<N> Send for ProverFile<N>
impl<N> Sync for ProverFile<N>
impl<N> Unpin for ProverFile<N>
impl<N> UnwindSafe for ProverFile<N>where
<N as Environment>::Field: UnwindSafe + RefUnwindSafe,
<<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