Struct everscale_types::models::config::ValidatorDescription
source · pub struct ValidatorDescription {
pub public_key: HashBytes,
pub weight: u64,
pub adnl_addr: Option<HashBytes>,
pub mc_seqno_since: u32,
pub prev_total_weight: u64,
}Expand description
Validator description.
Fields§
§public_key: HashBytesValidator public key.
weight: u64Validator weight in some units.
adnl_addr: Option<HashBytes>Optional validator ADNL address.
mc_seqno_since: u32Since which seqno this validator will be active.
prev_total_weight: u64Total weight of the previous validators in the list. The field is not serialized.
Implementations§
source§impl ValidatorDescription
impl 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 Clone for ValidatorDescription
impl Clone for ValidatorDescription
source§fn clone(&self) -> ValidatorDescription
fn clone(&self) -> ValidatorDescription
Returns a copy 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 ValidatorDescription
impl Debug for ValidatorDescription
source§impl<'a> Load<'a> for ValidatorDescription
impl<'a> Load<'a> for ValidatorDescription
source§impl PartialEq<ValidatorDescription> for ValidatorDescription
impl PartialEq<ValidatorDescription> for ValidatorDescription
source§fn eq(&self, other: &ValidatorDescription) -> bool
fn eq(&self, other: &ValidatorDescription) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Store for ValidatorDescription
impl Store for ValidatorDescription
source§fn store_into(
&self,
builder: &mut CellBuilder,
_: &mut dyn Finalizer
) -> Result<(), Error>
fn store_into( &self, builder: &mut CellBuilder, _: &mut dyn Finalizer ) -> Result<(), Error>
Tries to store itself into the cell builder.
impl Eq for ValidatorDescription
impl StructuralEq for ValidatorDescription
impl StructuralPartialEq for ValidatorDescription
Auto Trait Implementations§
impl RefUnwindSafe for ValidatorDescription
impl Send for ValidatorDescription
impl Sync for ValidatorDescription
impl Unpin for ValidatorDescription
impl UnwindSafe for ValidatorDescription
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