pub enum VerificationError {
Show 16 variants
PointCountMismatch {
expected: usize,
actual: usize,
},
EdgeIndexOutOfBounds {
edge: (usize, usize),
point_count: usize,
},
SelfEdge {
index: usize,
},
EdgeSetMismatch {
expected: Vec<(usize, usize)>,
actual: Vec<(usize, usize)>,
},
PointMismatch {
index: usize,
},
QuantizedProjectionMismatch {
index: usize,
expected: [i64; 2],
actual: [i64; 2],
},
AlgebraicKeyDimensionMismatch {
expected: usize,
actual: usize,
},
InvalidAlgebraicKeyDenominator {
denominator: i64,
},
TranslationNotNormOne {
index: usize,
},
CandidateOutsideWindow {
index: usize,
radius: String,
max_embedding_norm: String,
},
ProjectionMismatch {
index: usize,
},
CandidatePathMismatch {
index: usize,
},
CandidatePathTranslationOutOfBounds {
candidate_index: usize,
translation_index: usize,
translation_count: usize,
},
EdgeProvenanceMismatch {
edge_index: usize,
},
InvalidConstruction {
reason: String,
},
CertificateSchemaMismatch {
reason: String,
},
}Expand description
Errors that can occur while verifying a construction certificate.
Variants§
PointCountMismatch
The certificate stores a different number of points than the construction claims.
EdgeIndexOutOfBounds
A claimed unit-distance edge refers to a point index outside the point set.
SelfEdge
A claimed unit-distance edge connects a point to itself.
EdgeSetMismatch
The claimed edge set does not match the independently recomputed edge set.
PointMismatch
A stored point does not match the deterministic construction.
QuantizedProjectionMismatch
A stored projection key does not match the point it claims to certify.
AlgebraicKeyDimensionMismatch
An algebraic certificate key has the wrong field dimension.
InvalidAlgebraicKeyDenominator
An algebraic certificate key has a non-positive denominator.
TranslationNotNormOne
A claimed norm-one translation does not verify in the supported native model.
CandidateOutsideWindow
A certified candidate is outside the claimed polydisk window.
ProjectionMismatch
A stored projection point does not match the certified algebraic candidate.
CandidatePathMismatch
A certified candidate path does not replay to the stored algebraic key.
CandidatePathTranslationOutOfBounds
A candidate path references a missing translation.
EdgeProvenanceMismatch
A certified construction edge is not explained by a norm-one translation.
InvalidConstruction
The certificate contains invalid construction metadata.
CertificateSchemaMismatch
The serialized certificate does not match the supported schema.
Trait Implementations§
Source§impl Clone for VerificationError
impl Clone for VerificationError
Source§fn clone(&self) -> VerificationError
fn clone(&self) -> VerificationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerificationError
impl Debug for VerificationError
Source§impl Display for VerificationError
impl Display for VerificationError
Source§impl Error for VerificationError
impl Error for VerificationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for VerificationError
impl PartialEq for VerificationError
Source§fn eq(&self, other: &VerificationError) -> bool
fn eq(&self, other: &VerificationError) -> bool
self and other values to be equal, and is used by ==.