Struct chain_crypto::KeyPair
source · pub struct KeyPair<A: AsymmetricKey>(SecretKey<A>, PublicKey<A::PubAlg>);
Tuple Fields§
§0: SecretKey<A>
§1: PublicKey<A::PubAlg>
Implementations§
Trait Implementations§
source§impl<A> Arbitrary for KeyPair<A>where
A: AsymmetricKey + 'static,
A::Secret: Send,
<A::PubAlg as AsymmetricPublicKey>::Public: Send,
impl<A> Arbitrary for KeyPair<A>where A: AsymmetricKey + 'static, A::Secret: Send, <A::PubAlg as AsymmetricPublicKey>::Public: Send,
source§impl<A: AsymmetricKey> Arbitrary for KeyPair<A>
impl<A: AsymmetricKey> Arbitrary for KeyPair<A>
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<KeyPair<A>>
type Strategy = BoxedStrategy<KeyPair<A>>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy
source§impl<A: AsymmetricKey> Clone for KeyPair<A>
impl<A: AsymmetricKey> Clone for KeyPair<A>
source§impl<A: AsymmetricKey> Debug for KeyPair<A>
impl<A: AsymmetricKey> Debug for KeyPair<A>
source§impl<A: AsymmetricKey> Display for KeyPair<A>
impl<A: AsymmetricKey> Display for KeyPair<A>
Auto Trait Implementations§
impl<A> RefUnwindSafe for KeyPair<A>where <<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: RefUnwindSafe, <A as AsymmetricKey>::Secret: RefUnwindSafe,
impl<A> Send for KeyPair<A>where <<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: Send, <A as AsymmetricKey>::Secret: Send,
impl<A> Sync for KeyPair<A>where <<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: Sync, <A as AsymmetricKey>::Secret: Sync,
impl<A> Unpin for KeyPair<A>where <<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: Unpin, <A as AsymmetricKey>::Secret: Unpin,
impl<A> UnwindSafe for KeyPair<A>where <<A as AsymmetricKey>::PubAlg as AsymmetricPublicKey>::Public: UnwindSafe, <A as AsymmetricKey>::Secret: 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