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§
Sourcefn sign_rotation(
&self,
new_pubkey: &VerifyingKey,
signed_at: DateTime<Utc>,
) -> RotationEnvelopewhere
Self: Sized,
fn sign_rotation(
&self,
new_pubkey: &VerifyingKey,
signed_at: DateTime<Utc>,
) -> RotationEnvelopewhere
Self: Sized,
Sign a rotation envelope (old → new) using the old key
material. See sign_rotation for the free-function form.