[−][src]Enum tendermint::public_key::TendermintKey
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
impl TendermintKey
[src]
pub fn new_account_key(public_key: PublicKey) -> Result<TendermintKey, Error>
[src]
Create a new account key from a PublicKey
pub fn new_consensus_key(public_key: PublicKey) -> Result<TendermintKey, Error>
[src]
Create a new consensus key from a PublicKey
pub fn public_key(&self) -> &PublicKey
[src]
Get the PublicKey
value for this TendermintKey
Methods from Deref<Target = PublicKey>
pub fn verify(&self, msg: &[u8], signature: &Signature) -> Result<(), Error>
[src]
Verify the given Signature
using this public key
pub fn as_bytes(&self) -> &[u8]
[src]
View this key as a byte slice
Trait Implementations
impl Clone for TendermintKey
[src]
fn clone(&self) -> TendermintKey
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TendermintKey
[src]
impl Debug for TendermintKey
[src]
impl Deref for TendermintKey
[src]
impl Eq for TendermintKey
[src]
impl Ord for TendermintKey
[src]
fn cmp(&self, other: &TendermintKey) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TendermintKey> for TendermintKey
[src]
fn eq(&self, other: &TendermintKey) -> bool
[src]
fn ne(&self, other: &TendermintKey) -> bool
[src]
impl PartialOrd<TendermintKey> for TendermintKey
[src]
fn partial_cmp(&self, other: &TendermintKey) -> Option<Ordering>
[src]
fn lt(&self, other: &TendermintKey) -> bool
[src]
fn le(&self, other: &TendermintKey) -> bool
[src]
fn gt(&self, other: &TendermintKey) -> bool
[src]
fn ge(&self, other: &TendermintKey) -> bool
[src]
impl StructuralEq for TendermintKey
[src]
impl StructuralPartialEq for TendermintKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for TendermintKey
impl Send for TendermintKey
impl Sync for TendermintKey
impl Unpin for TendermintKey
impl UnwindSafe for TendermintKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,