pub struct RootRotation {
pub community_id: CommunityId,
pub rotation_seq: u64,
pub old_root: PublicKey,
pub new_root: PublicKey,
pub new_suite: u8,
pub issued_at: u64,
}Expand description
The replacement of the community’s root key, signed by the old and the new key.
Fields§
§community_id: CommunityId2: the community.
rotation_seq: u643: 1 for the first rotation, then +1.
old_root: PublicKey4: the root key being retired.
new_root: PublicKey5: the root key taking over.
new_suite: u86: the suite of new_root; ≥ the old key’s suite.
issued_at: u647: ms.
Trait Implementations§
Source§impl Clone for RootRotation
impl Clone for RootRotation
Source§fn clone(&self) -> RootRotation
fn clone(&self) -> RootRotation
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 RootRotation
impl Debug for RootRotation
Source§impl Decode for RootRotation
impl Decode for RootRotation
Source§impl Encode for RootRotation
impl Encode for RootRotation
impl Eq for RootRotation
Source§impl PartialEq for RootRotation
impl PartialEq for RootRotation
Source§impl SignedObject for RootRotation
impl SignedObject for RootRotation
Source§const CONTEXT: Context = Context::RootRotation
const CONTEXT: Context = Context::RootRotation
The context the verifier supplies for this type (§3.5).
Source§fn decode_unverified(bytes: &[u8]) -> Result<Self, DecodeError>
fn decode_unverified(bytes: &[u8]) -> Result<Self, DecodeError>
Decodes canonical bytes without verifying them. Receivers use
Signed::verify_and_decode. Read moreSource§fn sign(self, sk: &SecretKey) -> Result<Signed<Self>, SignedError>
fn sign(self, sk: &SecretKey) -> Result<Signed<Self>, SignedError>
Encodes and signs (hedged). Read more
Source§fn sign_deterministic(self, sk: &SecretKey) -> Result<Signed<Self>, SignedError>
fn sign_deterministic(self, sk: &SecretKey) -> Result<Signed<Self>, SignedError>
Encodes and signs deterministically. Golden test vectors only. Read more
impl StructuralPartialEq for RootRotation
Auto Trait Implementations§
impl Freeze for RootRotation
impl RefUnwindSafe for RootRotation
impl Send for RootRotation
impl Sync for RootRotation
impl Unpin for RootRotation
impl UnsafeUnpin for RootRotation
impl UnwindSafe for RootRotation
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