pub struct DaemonIdentity {
pub current_pubkey: [u8; 32],
pub pending_pubkey: Option<[u8; 32]>,
pub security_level: SecurityLevel,
pub generation: u64,
}Expand description
A daemon’s verified identity, clearance, and key state.
Does NOT derive Serialize — internal registry state that must never
cross a process boundary or appear in logs, API responses, or error messages.
Fields§
§current_pubkey: [u8; 32]Current active X25519 static public key.
pending_pubkey: Option<[u8; 32]>Pending rotation pubkey. Set by phase 1, cleared by phase 2 finalization. Both current and pending are valid for identity resolution during the grace period.
security_level: SecurityLevelSecurity clearance level for this daemon.
generation: u64Monotonic generation counter. Incremented on every finalized rotation or crash-revocation. Used by two-phase rotation to detect concurrent revocations and avoid double-rotation.
Trait Implementations§
Source§impl Clone for DaemonIdentity
impl Clone for DaemonIdentity
Source§fn clone(&self) -> DaemonIdentity
fn clone(&self) -> DaemonIdentity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DaemonIdentity
impl RefUnwindSafe for DaemonIdentity
impl Send for DaemonIdentity
impl Sync for DaemonIdentity
impl Unpin for DaemonIdentity
impl UnwindSafe for DaemonIdentity
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