pub struct LocalBackend {}Expand description
Local proving backend for desktop use.
When the local feature is enabled, delegates to moonproof-prover
for ZKIR parsing and circuit analysis. Full proving requires the standard
Midnight binary protocol (ProofPreimage + ProvingKeyMaterial).
Implementations§
Trait Implementations§
Source§impl Debug for LocalBackend
impl Debug for LocalBackend
Source§impl ProverBackend for LocalBackend
impl ProverBackend for LocalBackend
fn prove<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_zkir_json: &'life1 str,
_witness_json: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<ProofOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_zkir_json: &'life1 str,
_witness_json: &'life2 str,
_proof_hex: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn circuit_info<'life0, 'life1, 'async_trait>(
&'life0 self,
_zkir_json: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<CircuitInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn health<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BackendHealth>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn name(&self) -> &'static str
Auto Trait Implementations§
impl Forget for LocalBackend
impl Freeze for LocalBackend
impl Move for LocalBackend
impl RefUnwindSafe for LocalBackend
impl Send for LocalBackend
impl Sync for LocalBackend
impl Unpin for LocalBackend
impl UnsafeUnpin for LocalBackend
impl UnwindSafe for LocalBackend
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