pub enum AttestError {
Forged,
AttestationRequired,
BadBoundKey,
MalformedSignature,
}Expand description
Reason a store-path write was refused (or could not be attested) by
attest_write.
Variants§
Forged
A signature was presented and a bound key exists, but the signature did not verify — tampered payload, flipped signature byte, or a signature minted under a different key. ALWAYS a hard reject, regardless of the require-attestation posture: a presented-but-bad signature is never silently downgraded to a claim.
AttestationRequired
Attestation is required (AI_MEMORY_REQUIRE_AGENT_ATTESTATION) but
the write could not be attested — no signature was presented, or
the agent has no bound key to verify against.
BadBoundKey
The agent’s bound public key could not be decoded — the
registration metadata holds a corrupt agent_pubkey. Fail-closed
(we cannot attest against a key we cannot parse).
MalformedSignature
The presented signature blob was not exactly 64 bytes.
Trait Implementations§
Source§impl Debug for AttestError
impl Debug for AttestError
Source§impl Display for AttestError
impl Display for AttestError
impl Eq for AttestError
Source§impl Error for AttestError
impl Error for AttestError
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 AttestError
impl PartialEq for AttestError
Source§fn eq(&self, other: &AttestError) -> bool
fn eq(&self, other: &AttestError) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AttestError
Auto Trait Implementations§
impl Freeze for AttestError
impl RefUnwindSafe for AttestError
impl Send for AttestError
impl Sync for AttestError
impl Unpin for AttestError
impl UnsafeUnpin for AttestError
impl UnwindSafe for AttestError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read moreSource§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.