pub struct VerificationEngine {
pub engine_type: VerificationEngineType,
pub parameters: VerificationParameters,
}Expand description
Verification engine for validating proofs
Fields§
§engine_type: VerificationEngineType§parameters: VerificationParametersImplementations§
Source§impl VerificationEngine
impl VerificationEngine
Sourcepub fn verify_proof(
&self,
verifying_key: &VerifyingKey,
proof: &[u8],
public_inputs: &[FieldElement],
) -> Result<bool, ZkError>
pub fn verify_proof( &self, verifying_key: &VerifyingKey, proof: &[u8], public_inputs: &[FieldElement], ) -> Result<bool, ZkError>
Verify proof — structural validity only.
NOTE: This is NOT cryptographic verification. A real ZK backend (bellman/arkworks) is required for that. This rejects obviously invalid proofs: too-short, all-zero placeholders, empty public inputs, or unkeyed verifiers.
Auto Trait Implementations§
impl Freeze for VerificationEngine
impl RefUnwindSafe for VerificationEngine
impl Send for VerificationEngine
impl Sync for VerificationEngine
impl Unpin for VerificationEngine
impl UnsafeUnpin for VerificationEngine
impl UnwindSafe for VerificationEngine
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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