pub struct KeyRotation {
pub old_keys: Vec<u8>,
pub new_keys: Vec<u8>,
pub at: i64,
pub signature: Vec<u8>,
}Expand description
A change of the account’s keys (#89): the new public keys, signed by the old signing key. Machines pinned to the old keys follow it; a relay cannot make one without the account’s old private key.
Fields§
§old_keys: Vec<u8>The public keys it replaces (X25519, then Ed25519).
new_keys: Vec<u8>The public keys that replace them.
at: i64When it was signed (Unix seconds).
signature: Vec<u8>The old signing key’s signature of rotation_bytes.
Trait Implementations§
Source§impl Clone for KeyRotation
impl Clone for KeyRotation
Source§impl Debug for KeyRotation
impl Debug for KeyRotation
Source§impl<'de> Deserialize<'de> for KeyRotation
impl<'de> Deserialize<'de> for KeyRotation
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
impl Eq for KeyRotation
Source§impl PartialEq for KeyRotation
impl PartialEq for KeyRotation
Source§impl Serialize for KeyRotation
impl Serialize for KeyRotation
impl StructuralPartialEq for KeyRotation
Auto Trait Implementations§
impl Forget for KeyRotation
impl Freeze for KeyRotation
impl Move for KeyRotation
impl RefUnwindSafe for KeyRotation
impl Send for KeyRotation
impl Sync for KeyRotation
impl Unpin for KeyRotation
impl UnsafeUnpin for KeyRotation
impl UnwindSafe for KeyRotation
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