pub struct RotationEvent {
pub payload: RotationEventPayload,
pub handover_signature_b64: String,
}Expand description
On-the-wire rotation event — published by the registry, consumed by every plugin-host.
Fields§
§payload: RotationEventPayloadThe signed payload.
handover_signature_b64: StringDER-encoded ECDSA signature over
ROTATION_DOMAIN_PREFIX || serde_jcs(payload), base64-encoded.
Signed by payload.from_key_id.
Implementations§
Source§impl RotationEvent
impl RotationEvent
Sourcepub fn signed_bytes(
payload: &RotationEventPayload,
) -> Result<Vec<u8>, RotationError>
pub fn signed_bytes( payload: &RotationEventPayload, ) -> Result<Vec<u8>, RotationError>
Canonical bytes that were signed to produce
handover_signature_b64. Used by the verifier; exposed so tests
and the audit log can show the operator exactly what was signed.
Trait Implementations§
Source§impl Clone for RotationEvent
impl Clone for RotationEvent
Source§fn clone(&self) -> RotationEvent
fn clone(&self) -> RotationEvent
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 moreSource§impl Debug for RotationEvent
impl Debug for RotationEvent
Source§impl<'de> Deserialize<'de> for RotationEvent
impl<'de> Deserialize<'de> for RotationEvent
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 RotationEvent
impl PartialEq for RotationEvent
Source§fn eq(&self, other: &RotationEvent) -> bool
fn eq(&self, other: &RotationEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RotationEvent
impl Serialize for RotationEvent
impl Eq for RotationEvent
impl StructuralPartialEq for RotationEvent
Auto Trait Implementations§
impl Freeze for RotationEvent
impl RefUnwindSafe for RotationEvent
impl Send for RotationEvent
impl Sync for RotationEvent
impl Unpin for RotationEvent
impl UnsafeUnpin for RotationEvent
impl UnwindSafe for RotationEvent
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