[−][src]Struct exonum_keys::Keys
Struct containing all validator key pairs.
Fields
consensus: KeyPair
Consensus keypair.
service: KeyPair
Service keypair.
Methods
impl Keys
[src]
pub fn from_keys(
consensus_pk: PublicKey,
consensus_sk: SecretKey,
service_pk: PublicKey,
service_sk: SecretKey
) -> Self
[src]
consensus_pk: PublicKey,
consensus_sk: SecretKey,
service_pk: PublicKey,
service_sk: SecretKey
) -> Self
Create validator keys from provided keypairs.
Panics
If public key in any keypair doesn't match with corresponding private key.
impl Keys
[src]
pub fn consensus_pk(&self) -> PublicKey
[src]
Consensus public key.
pub fn consensus_sk(&self) -> &SecretKey
[src]
Consensus private key.
pub fn service_pk(&self) -> PublicKey
[src]
Service public key.
pub fn service_sk(&self) -> &SecretKey
[src]
Service secret key.
Trait Implementations
impl Clone for Keys
[src]
impl Default for Keys
[src]
impl Eq for Keys
[src]
impl PartialEq<Keys> for Keys
[src]
impl Debug for Keys
[src]
impl StructuralPartialEq for Keys
[src]
impl StructuralEq for Keys
[src]
impl Serialize for Keys
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Keys
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Keys
impl Sync for Keys
impl Unpin for Keys
impl UnwindSafe for Keys
impl RefUnwindSafe for Keys
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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 = !
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<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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self)
impl<T> InitializableFromZeroed for T where
T: Default,
T: Default,
unsafe fn initialize(place: *mut T)
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,