pub struct RotationStatement {
pub agora_governance_key_rotation: u32,
pub reason: RotationReason,
pub old_key: PublicKeyHex,
pub new_key: PublicKeyHex,
pub prev_hash: Option<Sha256Hex>,
}Expand description
What the proof of possession signs
A struct rather than a serde_json::Value for the same reason as
Envelope: declaration-ordered serialization whatever preserve_order
says. prev_hash is the rotation entry’s own, so a proof lifted out of
one chain position does not verify in another.
Fields§
§agora_governance_key_rotation: u32Always KEY_ROTATION_VERSION
reason: RotationReason§old_key: PublicKeyHex§new_key: PublicKeyHex§prev_hash: Option<Sha256Hex>Implementations§
Source§impl RotationStatement
impl RotationStatement
Sourcepub fn new(
reason: RotationReason,
old_key: PublicKeyHex,
new_key: PublicKeyHex,
prev_hash: Option<Sha256Hex>,
) -> Self
pub fn new( reason: RotationReason, old_key: PublicKeyHex, new_key: PublicKeyHex, prev_hash: Option<Sha256Hex>, ) -> Self
The statement for a rotation at the position named by prev_hash
Trait Implementations§
Source§impl Clone for RotationStatement
impl Clone for RotationStatement
Source§fn clone(&self) -> RotationStatement
fn clone(&self) -> RotationStatement
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 RotationStatement
impl Debug for RotationStatement
impl Eq for RotationStatement
Source§impl PartialEq for RotationStatement
impl PartialEq for RotationStatement
Source§impl Serialize for RotationStatement
impl Serialize for RotationStatement
impl StructuralPartialEq for RotationStatement
Auto Trait Implementations§
impl Freeze for RotationStatement
impl RefUnwindSafe for RotationStatement
impl Send for RotationStatement
impl Sync for RotationStatement
impl Unpin for RotationStatement
impl UnsafeUnpin for RotationStatement
impl UnwindSafe for RotationStatement
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