pub struct AcceptedAt9pState {
pub subject_cid512: String,
pub did: String,
pub epoch: u64,
pub head_digest: [u8; 64],
pub terminal: bool,
pub current: CapsuleBody,
pub expires_at: Option<String>,
pub provenance: AcceptedAt9pProvenance,
/* private fields */
}Expand description
Typed, re-verifiable current did:at9p state exposed to identity-bound
resolver/admission consumers.
current carries the current authorized signing keys, services, aliases,
and commitments. Service entries remain signed claims to validate and try;
this type deliberately carries no liveness, reach, possession, selection,
or admission verdict.
Fields§
§subject_cid512: String§did: String§epoch: u64§head_digest: [u8; 64]§terminal: bool§current: CapsuleBody§expires_at: Option<String>Successor expiry. Genesis has no update expiry.
provenance: AcceptedAt9pProvenanceImplementations§
Source§impl AcceptedAt9pState
impl AcceptedAt9pState
Sourcepub fn from_verified_genesis(verified: &VerifiedCapsule) -> Result<Self>
pub fn from_verified_genesis(verified: &VerifiedCapsule) -> Result<Self>
Construct the initial durable state only from the unforgeable GATE witness. There is no caller/config seed constructor.
Sourcepub fn from_persisted_genesis(bytes: &[u8]) -> Result<Self>
pub fn from_persisted_genesis(bytes: &[u8]) -> Result<Self>
Rebuild a stored genesis through the complete GATE pipeline.
Sourcepub fn from_persisted_update(bytes: &[u8]) -> Result<Self>
pub fn from_persisted_update(bytes: &[u8]) -> Result<Self>
Rebuild a successor previously committed by the accepted-state owner. Canonical/schema validation is repeated and all derived watermark fields are recomputed from the retained bytes.
Sourcepub fn ensure_fresh(&self, now: &str) -> Result<()>
pub fn ensure_fresh(&self, now: &str) -> Result<()>
Fail closed if the accepted update has expired at now. Genesis has no
successor expiry and remains current until a successor is accepted.
pub fn watermark(&self) -> Watermark
Sourcepub fn head(&self) -> &AcceptedAt9pHead
pub fn head(&self) -> &AcceptedAt9pHead
Complete canonical head record for durable re-verification/recovery.
Trait Implementations§
Source§impl Clone for AcceptedAt9pState
impl Clone for AcceptedAt9pState
Source§fn clone(&self) -> AcceptedAt9pState
fn clone(&self) -> AcceptedAt9pState
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 AcceptedAt9pState
impl Debug for AcceptedAt9pState
Source§impl PartialEq for AcceptedAt9pState
impl PartialEq for AcceptedAt9pState
Source§fn eq(&self, other: &AcceptedAt9pState) -> bool
fn eq(&self, other: &AcceptedAt9pState) -> bool
self and other values to be equal, and is used by ==.impl Eq for AcceptedAt9pState
impl StructuralPartialEq for AcceptedAt9pState
Auto Trait Implementations§
impl Freeze for AcceptedAt9pState
impl RefUnwindSafe for AcceptedAt9pState
impl Send for AcceptedAt9pState
impl Sync for AcceptedAt9pState
impl Unpin for AcceptedAt9pState
impl UnsafeUnpin for AcceptedAt9pState
impl UnwindSafe for AcceptedAt9pState
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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>
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 more