Enum tendermint::private_key::PrivateKey
source · #[non_exhaustive]
pub enum PrivateKey {
Ed25519(Ed25519),
}
Expand description
Private keys as parsed from configuration files
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl PrivateKey
impl PrivateKey
sourcepub fn public_key(&self) -> PublicKey
pub fn public_key(&self) -> PublicKey
Get the public key associated with this private key
sourcepub fn ed25519_keypair(&self) -> Option<&Ed25519>
pub fn ed25519_keypair(&self) -> Option<&Ed25519>
If applicable, borrow the Ed25519 keypair
Trait Implementations§
source§impl<'de> Deserialize<'de> for PrivateKey
impl<'de> Deserialize<'de> for PrivateKey
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