pub struct AuthorityProof {
pub claimer: NodeId,
pub state_id: u64,
pub signature: Vec<u8>,
pub timestamp: i64,
}Expand description
Authority proof - cryptographic evidence of mutation rights
Fields§
§claimer: NodeIdThe node claiming authority
state_id: u64The state being claimed
signature: Vec<u8>Signature over (claimer, state_id, timestamp)
timestamp: i64Timestamp of the claim
Implementations§
Trait Implementations§
Source§impl Clone for AuthorityProof
impl Clone for AuthorityProof
Source§fn clone(&self) -> AuthorityProof
fn clone(&self) -> AuthorityProof
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AuthorityProof
impl RefUnwindSafe for AuthorityProof
impl Send for AuthorityProof
impl Sync for AuthorityProof
impl Unpin for AuthorityProof
impl UnsafeUnpin for AuthorityProof
impl UnwindSafe for AuthorityProof
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