Enum tendermint::public_key::TendermintKey
source · Expand description
Public key roles used in Tendermint networks
Variants§
AccountKey(PublicKey)
User signing keys used for interacting with accounts in the state machine
ConsensusKey(PublicKey)
Validator signing keys used for authenticating consensus protocol messages
Implementations§
source§impl TendermintKey
impl TendermintKey
sourcepub fn new_account_key(public_key: PublicKey) -> Result<TendermintKey, Error>
pub fn new_account_key(public_key: PublicKey) -> Result<TendermintKey, Error>
Create a new account key from a PublicKey
sourcepub fn new_consensus_key(public_key: PublicKey) -> Result<TendermintKey, Error>
pub fn new_consensus_key(public_key: PublicKey) -> Result<TendermintKey, Error>
Create a new consensus key from a PublicKey
sourcepub fn public_key(&self) -> &PublicKey
pub fn public_key(&self) -> &PublicKey
Get the PublicKey
value for this TendermintKey
Methods from Deref<Target = PublicKey>§
Trait Implementations§
source§impl Clone for TendermintKey
impl Clone for TendermintKey
source§fn clone(&self) -> TendermintKey
fn clone(&self) -> TendermintKey
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 TendermintKey
impl Debug for TendermintKey
source§impl Deref for TendermintKey
impl Deref for TendermintKey
source§impl Ord for TendermintKey
impl Ord for TendermintKey
source§fn cmp(&self, other: &TendermintKey) -> Ordering
fn cmp(&self, other: &TendermintKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TendermintKey> for TendermintKey
impl PartialEq<TendermintKey> for TendermintKey
source§fn eq(&self, other: &TendermintKey) -> bool
fn eq(&self, other: &TendermintKey) -> bool
source§impl PartialOrd<TendermintKey> for TendermintKey
impl PartialOrd<TendermintKey> for TendermintKey
source§fn partial_cmp(&self, other: &TendermintKey) -> Option<Ordering>
fn partial_cmp(&self, other: &TendermintKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more