Struct taple_core::crypto::BaseKeyPair
source · pub struct BaseKeyPair<P, K> {
pub public_key: P,
pub secret_key: Option<K>,
}
Expand description
Base for asymmetric key pair
Fields§
§public_key: P
§secret_key: Option<K>
Trait Implementations§
source§impl<P: Clone, K: Clone> Clone for BaseKeyPair<P, K>
impl<P: Clone, K: Clone> Clone for BaseKeyPair<P, K>
source§fn clone(&self) -> BaseKeyPair<P, K>
fn clone(&self) -> BaseKeyPair<P, K>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<P: Default, K: Default> Default for BaseKeyPair<P, K>
impl<P: Default, K: Default> Default for BaseKeyPair<P, K>
source§fn default() -> BaseKeyPair<P, K>
fn default() -> BaseKeyPair<P, K>
Returns the “default value” for a type. Read more
source§impl From<BaseKeyPair<PublicKey, SecretKey>> for KeyPair
impl From<BaseKeyPair<PublicKey, SecretKey>> for KeyPair
source§fn from(key_pair: Ed25519KeyPair) -> Self
fn from(key_pair: Ed25519KeyPair) -> Self
Converts to this type from the input type.
source§impl From<BaseKeyPair<PublicKey, SecretKey>> for KeyPair
impl From<BaseKeyPair<PublicKey, SecretKey>> for KeyPair
source§fn from(key_pair: Secp256k1KeyPair) -> Self
fn from(key_pair: Secp256k1KeyPair) -> Self
Converts to this type from the input type.
source§impl<P: PartialEq, K: PartialEq> PartialEq<BaseKeyPair<P, K>> for BaseKeyPair<P, K>
impl<P: PartialEq, K: PartialEq> PartialEq<BaseKeyPair<P, K>> for BaseKeyPair<P, K>
source§fn eq(&self, other: &BaseKeyPair<P, K>) -> bool
fn eq(&self, other: &BaseKeyPair<P, K>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<P, K> StructuralPartialEq for BaseKeyPair<P, K>
Auto Trait Implementations§
impl<P, K> RefUnwindSafe for BaseKeyPair<P, K>where K: RefUnwindSafe, P: RefUnwindSafe,
impl<P, K> Send for BaseKeyPair<P, K>where K: Send, P: Send,
impl<P, K> Sync for BaseKeyPair<P, K>where K: Sync, P: Sync,
impl<P, K> Unpin for BaseKeyPair<P, K>where K: Unpin, P: Unpin,
impl<P, K> UnwindSafe for BaseKeyPair<P, K>where K: UnwindSafe, P: UnwindSafe,
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