[−][src]Struct solana_libra_config::config::KeyPairs
Methods
impl KeyPairs
[src]
pub fn load_config<P: AsRef<Path>>(path: P) -> Self
[src]
pub fn save_config<P: AsRef<Path>>(&self, output_file: P)
[src]
pub fn load(private_keys: &TrustedPeerPrivateKeys) -> Self
[src]
pub fn get_network_signing_private(&self) -> PrivateKey
[src]
pub fn get_network_identity_private(&self) -> X25519PrivateKey
[src]
pub fn get_consensus_private(&self) -> PrivateKey
[src]
pub fn get_network_signing_public(&self) -> PublicKey
[src]
pub fn get_network_identity_public(&self) -> X25519PublicKey
[src]
pub fn get_consensus_public(&self) -> PublicKey
[src]
pub fn get_network_signing_keypair(&self) -> (PrivateKey, PublicKey)
[src]
pub fn get_network_identity_keypair(
&self
) -> (X25519PrivateKey, X25519PublicKey)
[src]
&self
) -> (X25519PrivateKey, X25519PublicKey)
pub fn get_consensus_keypair(&self) -> (PrivateKey, PublicKey)
[src]
Trait Implementations
impl Clone for KeyPairs
[src]
fn clone(&self) -> KeyPairs
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for KeyPairs
[src]
impl Debug for KeyPairs
[src]
impl Serialize for KeyPairs
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for KeyPairs
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for KeyPairs
impl Send for KeyPairs
impl Unpin for KeyPairs
impl RefUnwindSafe for KeyPairs
impl UnwindSafe for KeyPairs
Blanket Implementations
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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> Same<T> for T
type Output = T
Should always be Self
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
T: Serialize + ?Sized,
fn test_only_hash(&self) -> HashValue
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>,
fn vzip(self) -> V
impl<T> Erased for T
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,