pub struct RotationEnvelope {
pub schema_version: u16,
pub old_pubkey: [u8; 32],
pub new_pubkey: [u8; 32],
pub signed_at: DateTime<Utc>,
pub signature: [u8; 64],
}Expand description
Identity-rotation envelope — proves the holder of old_pubkey (or the
recovery key) authorizes new_pubkey to take over (ADR 0010 §6).
Fields§
§schema_version: u16Schema version for the rotation envelope canonical bytes.
Bumped independently of SCHEMA_VERSION_ATTESTATION when the
rotation framing changes.
old_pubkey: [u8; 32]Old public key bytes (32 bytes, raw — not multibase).
new_pubkey: [u8; 32]New public key bytes (32 bytes, raw — not multibase).
signed_at: DateTime<Utc>When the rotation was signed.
signature: [u8; 64]Ed25519 signature over canonical_rotation_input using the
old signing key (or recovery key, where applicable).
Trait Implementations§
Source§impl Clone for RotationEnvelope
impl Clone for RotationEnvelope
Source§fn clone(&self) -> RotationEnvelope
fn clone(&self) -> RotationEnvelope
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 RotationEnvelope
impl Debug for RotationEnvelope
Source§impl<'de> Deserialize<'de> for RotationEnvelope
impl<'de> Deserialize<'de> for RotationEnvelope
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 RotationEnvelope
impl PartialEq for RotationEnvelope
Source§fn eq(&self, other: &RotationEnvelope) -> bool
fn eq(&self, other: &RotationEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RotationEnvelope
impl Serialize for RotationEnvelope
impl Eq for RotationEnvelope
impl StructuralPartialEq for RotationEnvelope
Auto Trait Implementations§
impl Freeze for RotationEnvelope
impl RefUnwindSafe for RotationEnvelope
impl Send for RotationEnvelope
impl Sync for RotationEnvelope
impl Unpin for RotationEnvelope
impl UnsafeUnpin for RotationEnvelope
impl UnwindSafe for RotationEnvelope
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