pub struct IdentityBundle {
pub identity_did: String,
pub public_key_hex: String,
pub attestation_chain: Vec<Attestation>,
pub bundle_timestamp: DateTime<Utc>,
pub max_valid_for_secs: u64,
}Expand description
An identity bundle for stateless verification in CI/CD environments.
Contains all the information needed to verify commit signatures without requiring access to the identity repository or daemon.
Fields§
§identity_did: StringThe DID of the identity (e.g., “did:keri:…”)
public_key_hex: StringThe public key in hex format for signature verification
attestation_chain: Vec<Attestation>Chain of attestations linking the signing key to the identity
bundle_timestamp: DateTime<Utc>UTC timestamp when this bundle was created
max_valid_for_secs: u64Maximum age in seconds before this bundle is considered stale
Implementations§
Source§impl IdentityBundle
impl IdentityBundle
Sourcepub fn check_freshness(
&self,
now: DateTime<Utc>,
) -> Result<(), AttestationError>
pub fn check_freshness( &self, now: DateTime<Utc>, ) -> Result<(), AttestationError>
Check that this bundle is still within its TTL.
Args:
now: The current time, injected for deterministic verification.
Usage:
ⓘ
bundle.check_freshness(Utc::now())?;Trait Implementations§
Source§impl Clone for IdentityBundle
impl Clone for IdentityBundle
Source§fn clone(&self) -> IdentityBundle
fn clone(&self) -> IdentityBundle
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 moreSource§impl Debug for IdentityBundle
impl Debug for IdentityBundle
Source§impl<'de> Deserialize<'de> for IdentityBundle
impl<'de> Deserialize<'de> for IdentityBundle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IdentityBundle
impl PartialEq for IdentityBundle
Source§impl Serialize for IdentityBundle
impl Serialize for IdentityBundle
impl StructuralPartialEq for IdentityBundle
Auto Trait Implementations§
impl Freeze for IdentityBundle
impl RefUnwindSafe for IdentityBundle
impl Send for IdentityBundle
impl Sync for IdentityBundle
impl Unpin for IdentityBundle
impl UnsafeUnpin for IdentityBundle
impl UnwindSafe for IdentityBundle
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