pub struct RevocationPayload {
pub revoked_pubkey: String,
pub revoked_at: String,
pub replacement_pubkey: String,
pub reason: String,
}Expand description
Payload of an EVENT_KIND_KEY_REVOKE event. Carries the
revoked Ed25519 pubkey (hex-encoded), the moment compromise was
detected (ISO-8601), an optional replacement pubkey the actor is
migrating to, and a free-form reason string. Stored on the event’s
payload field; the event’s actor is the actor whose key is
being revoked, and the event itself must be signed by a key that
was authoritative before the revocation (typically a co-signer
or the actor’s prior key — never the revoked key itself).
Fields§
§revoked_pubkey: StringThe Ed25519 pubkey being revoked, hex-encoded (64 chars).
revoked_at: StringISO-8601 moment when compromise was detected. Signatures
whose signed_at falls after this should be flagged on
re-verification.
replacement_pubkey: StringOptional replacement pubkey the actor is now signing with, hex-encoded. Reviewers re-verifying signed history use this to walk forward to the new key.
reason: StringFree-form reason — “key file leaked”, “stolen device”, “scheduled rotation”, etc. Reviewer-facing only; the substrate doesn’t enumerate.
Trait Implementations§
Source§impl Clone for RevocationPayload
impl Clone for RevocationPayload
Source§fn clone(&self) -> RevocationPayload
fn clone(&self) -> RevocationPayload
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RevocationPayload
impl Debug for RevocationPayload
Source§impl<'de> Deserialize<'de> for RevocationPayload
impl<'de> Deserialize<'de> for RevocationPayload
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>,
Source§impl PartialEq for RevocationPayload
impl PartialEq for RevocationPayload
Source§fn eq(&self, other: &RevocationPayload) -> bool
fn eq(&self, other: &RevocationPayload) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for RevocationPayload
impl Serialize for RevocationPayload
impl Eq for RevocationPayload
impl StructuralPartialEq for RevocationPayload
Auto Trait Implementations§
impl Freeze for RevocationPayload
impl RefUnwindSafe for RevocationPayload
impl Send for RevocationPayload
impl Sync for RevocationPayload
impl Unpin for RevocationPayload
impl UnsafeUnpin for RevocationPayload
impl UnwindSafe for RevocationPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.