pub struct CachedIdentity {
pub node_id: NodeId,
pub pubkey: [u8; 32],
pub log_index: u64,
pub verified_at: Tstamp,
pub expires_at: Tstamp,
}Expand description
CachedIdentity is a verified identity record stored in the IdentityCache.
Fields§
§node_id: NodeIdThe node identifier.
pubkey: [u8; 32]The node’s active Ed25519 public key at the time of verification.
log_index: u64Merkle log position of the entry that was verified.
verified_at: TstampTimestamp (nanoseconds since epoch) when this entry was cached.
expires_at: TstampTimestamp after which this entry is considered expired and must be re-verified.
Trait Implementations§
Source§impl Clone for CachedIdentity
impl Clone for CachedIdentity
Source§fn clone(&self) -> CachedIdentity
fn clone(&self) -> CachedIdentity
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 CachedIdentity
impl RefUnwindSafe for CachedIdentity
impl Send for CachedIdentity
impl Sync for CachedIdentity
impl Unpin for CachedIdentity
impl UnsafeUnpin for CachedIdentity
impl UnwindSafe for CachedIdentity
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