pub enum ProofError {
ConstraintError(String),
ProofGenerationFailed(String),
VerificationFailed(String),
InvalidProofFormat(String),
SetupError(String),
InvalidWitness(String),
DeserializationError(String),
UnauditedImplementation {
api: &'static str,
},
}Expand description
Errors arising from proof operations.
Variants§
ConstraintError(String)
ProofGenerationFailed(String)
VerificationFailed(String)
InvalidProofFormat(String)
SetupError(String)
InvalidWitness(String)
DeserializationError(String)
UnauditedImplementation
The exo-proofs crate is a pedagogical/structural implementation —
not cryptographically hardened. It refuses to execute unless the
opt-in unaudited-pedagogical-proofs Cargo feature is enabled.
Constitutional rule (per EXOCHAIN doctrine): never ship code that claims a capability it does not have. Callers who want to use this crate for classroom/structural work must explicitly opt in; callers who accidentally depend on it will fail loudly at call time instead of trusting a fake proof.
When a real proof backend (production-hardened SNARK/STARK/ZKML) lands, the opt-in flag MUST be removed and this variant deleted.
Trait Implementations§
Source§impl Debug for ProofError
impl Debug for ProofError
Source§impl Display for ProofError
impl Display for ProofError
Source§impl Error for ProofError
impl Error for ProofError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ProofError
impl RefUnwindSafe for ProofError
impl Send for ProofError
impl Sync for ProofError
impl Unpin for ProofError
impl UnsafeUnpin for ProofError
impl UnwindSafe for ProofError
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