pub struct SignedRosterEntry {
pub entry: RosterEntry,
pub hub_hash: String,
pub hub_pubkey: String,
pub signature: String,
pub issued_at: i64,
pub expires_at: i64,
}Expand description
A roster entry signed by a trusted hub’s Ed25519 key.
Fields§
§entry: RosterEntryThe roster entry being attested.
hub_hash: StringIdentity hash of the signing hub.
hub_pubkey: StringHub’s Ed25519 public key (64 hex chars = 32 bytes).
signature: StringEd25519 signature over canonical entry bytes (128 hex chars = 64 bytes).
issued_at: i64When this entry was issued (Unix timestamp).
expires_at: i64When this entry expires (Unix timestamp, 0 = no expiry).
Implementations§
Source§impl SignedRosterEntry
impl SignedRosterEntry
Sourcepub fn canonical_bytes(&self) -> Vec<u8> ⓘ
pub fn canonical_bytes(&self) -> Vec<u8> ⓘ
Build the canonical byte representation for signing/verification.
Sourcepub fn is_expired(&self, now_unix: i64) -> bool
pub fn is_expired(&self, now_unix: i64) -> bool
Check whether the entry has expired.
Trait Implementations§
Source§impl Clone for SignedRosterEntry
impl Clone for SignedRosterEntry
Source§fn clone(&self) -> SignedRosterEntry
fn clone(&self) -> SignedRosterEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SignedRosterEntry
impl RefUnwindSafe for SignedRosterEntry
impl Send for SignedRosterEntry
impl Sync for SignedRosterEntry
impl Unpin for SignedRosterEntry
impl UnsafeUnpin for SignedRosterEntry
impl UnwindSafe for SignedRosterEntry
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