pub enum ErrorCode {
Show 22 variants
NonCanonical,
DuplicateMapKey,
ForbiddenCborConstruct,
IdMismatch,
SignatureInvalid,
UnknownAlgorithm,
DeprecatedAlgorithm,
UnsupportedVersion,
LimitExceeded,
Malformed,
InvalidBase64Url,
UnexpectedHeaderParam,
AlgorithmConfusion,
SchemaViolation,
RelationshipUngrounded,
DanglingReference,
CycleDetected,
PolicyInvalid,
Expired,
Revoked,
RevocationUnknown,
UnauthorizedStatus,
}Expand description
Stable error codes (V0.1). Codes are append-only once V0.1 ships; the three graph codes below were added in Phase 3, before any release.
Variants§
NonCanonical
Input was not deterministically encoded (re-encode mismatch).
DuplicateMapKey
CBOR map contained a duplicate key.
ForbiddenCborConstruct
Forbidden CBOR construct (float, tag, indefinite, bignum, reserved ai).
IdMismatch
Recomputed object id did not match stated id.
SignatureInvalid
COSE signature did not verify.
UnknownAlgorithm
Algorithm number unknown to this verifier.
DeprecatedAlgorithm
Algorithm known but deprecated (e.g. COSE -8/-7). Fail closed.
UnsupportedVersion
Object/proof/policy version not supported.
LimitExceeded
A configured resource limit was exceeded.
Malformed
Structurally malformed (truncated, trailing bytes, bad UTF-8, odd map).
InvalidBase64Url
Base64url id component invalid.
UnexpectedHeaderParam
COSE header contained an unexpected label/value.
AlgorithmConfusion
Key algorithm does not match attestation algorithm.
SchemaViolation
Schema violation (unknown enum variant, unknown field, missing field).
RelationshipUngrounded
Trust-relevant relationship lacks backing evidence/attestation.
DanglingReference
Relationship endpoint or reference points at an unknown object.
CycleDetected
Forbidden cycle detected (SUPERSEDES subgraph must be acyclic).
PolicyInvalid
Policy file invalid (syntax, unknown requirement, bad version). Returned before any evaluation; never evaluated partially.
Expired
Attestation outside its validity window at the verifier clock
(issued_at > now+skew or now > expires_at+skew).
Revoked
Attestation covered by a valid signed revocation (claim.type=“revoke”).
RevocationUnknown
Revocation status cannot be established: no or stale revocation information was supplied. Fail closed, never PASS.
Signed status object (revoke/supersede) whose signer has no authority
over its target (not the original issuer, not in revocation_authorities).