pub struct IdentityKeyPair { /* private fields */ }
Expand description
A “ratcheting” key pair.
Implementations§
Source§impl IdentityKeyPair
impl IdentityKeyPair
Sourcepub fn new(
public_key: &PublicKey,
private_key: &PrivateKey,
) -> Result<IdentityKeyPair, Error>
pub fn new( public_key: &PublicKey, private_key: &PrivateKey, ) -> Result<IdentityKeyPair, Error>
Create a new IdentityKeyPair
out of its public and private keys.
Sourcepub fn private(&self) -> PrivateKey
pub fn private(&self) -> PrivateKey
Get the public part of this key pair.
Trait Implementations§
Source§impl Clone for IdentityKeyPair
impl Clone for IdentityKeyPair
Source§fn clone(&self) -> IdentityKeyPair
fn clone(&self) -> IdentityKeyPair
Returns a duplicate 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 Debug for IdentityKeyPair
impl Debug for IdentityKeyPair
Source§impl Serializable for IdentityKeyPair
impl Serializable for IdentityKeyPair
Auto Trait Implementations§
impl Freeze for IdentityKeyPair
impl RefUnwindSafe for IdentityKeyPair
impl !Send for IdentityKeyPair
impl !Sync for IdentityKeyPair
impl Unpin for IdentityKeyPair
impl UnwindSafe for IdentityKeyPair
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