Skip to main content

IdentityRotation

Trait IdentityRotation 

Source
pub trait IdentityRotation: Attestor {
    // Provided method
    fn sign_rotation(
        &self,
        new_pubkey: &VerifyingKey,
        signed_at: DateTime<Utc>,
    ) -> RotationEnvelope
       where Self: Sized { ... }
}
Expand description

Marker trait for “this attestor records a future identity-rotation commitment in addition to signing payloads.” Implementors emit a rotation envelope when a new key is provisioned. Implementations land alongside the keychain backends.

Provided Methods§

Source

fn sign_rotation( &self, new_pubkey: &VerifyingKey, signed_at: DateTime<Utc>, ) -> RotationEnvelope
where Self: Sized,

Sign a rotation envelope (old → new) using the old key material. See sign_rotation for the free-function form.

Implementors§