pub struct IndexedValidatorDescription {
pub desc: ValidatorDescription,
pub validator_idx: u16,
}Expand description
Validator description with its original index in vset.
Fields§
§desc: ValidatorDescriptionValidator description.
validator_idx: u16Index in the original validator set.
Methods from Deref<Target = ValidatorDescription>§
Sourcepub fn verify_signature(&self, data: &[u8], signature: &Signature) -> bool
pub fn verify_signature(&self, data: &[u8], signature: &Signature) -> bool
Verifies message signature and current public key.
Trait Implementations§
Source§impl AsMut<ValidatorDescription> for IndexedValidatorDescription
impl AsMut<ValidatorDescription> for IndexedValidatorDescription
Source§fn as_mut(&mut self) -> &mut ValidatorDescription
fn as_mut(&mut self) -> &mut ValidatorDescription
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<ValidatorDescription> for IndexedValidatorDescription
impl AsRef<ValidatorDescription> for IndexedValidatorDescription
Source§fn as_ref(&self) -> &ValidatorDescription
fn as_ref(&self) -> &ValidatorDescription
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for IndexedValidatorDescription
impl Clone for IndexedValidatorDescription
Source§fn clone(&self) -> IndexedValidatorDescription
fn clone(&self) -> IndexedValidatorDescription
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 moreSource§impl Debug for IndexedValidatorDescription
impl Debug for IndexedValidatorDescription
Source§impl Deref for IndexedValidatorDescription
impl Deref for IndexedValidatorDescription
Source§impl<'de> Deserialize<'de> for IndexedValidatorDescription
impl<'de> Deserialize<'de> for IndexedValidatorDescription
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 IndexedValidatorDescription
impl StructuralPartialEq for IndexedValidatorDescription
Auto Trait Implementations§
impl Freeze for IndexedValidatorDescription
impl RefUnwindSafe for IndexedValidatorDescription
impl Send for IndexedValidatorDescription
impl Sync for IndexedValidatorDescription
impl Unpin for IndexedValidatorDescription
impl UnwindSafe for IndexedValidatorDescription
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self to key and returns true if they are equal.