#[non_exhaustive]pub struct Keys {
pub consensus: KeyPair,
pub service: KeyPair,
}Expand description
Container for all key pairs held by an Exonum node.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.consensus: KeyPairConsensus keypair.
service: KeyPairService keypair.
Implementations§
Source§impl Keys
impl Keys
Source§impl Keys
impl Keys
Sourcepub fn consensus_pk(&self) -> PublicKey
pub fn consensus_pk(&self) -> PublicKey
Consensus public key.
Sourcepub fn consensus_sk(&self) -> &SecretKey
pub fn consensus_sk(&self) -> &SecretKey
Consensus private key.
Sourcepub fn service_pk(&self) -> PublicKey
pub fn service_pk(&self) -> PublicKey
Service public key.
Sourcepub fn service_sk(&self) -> &SecretKey
pub fn service_sk(&self) -> &SecretKey
Service secret key.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Keys
impl<'de> Deserialize<'de> for Keys
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 Keys
impl StructuralPartialEq for Keys
Auto Trait Implementations§
impl Freeze for Keys
impl RefUnwindSafe for Keys
impl Send for Keys
impl Sync for Keys
impl Unpin for Keys
impl UnwindSafe for Keys
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