pub struct TransportSecretKey { /* private fields */ }Expand description
Secret key of the transport key pair
Implementations§
Source§impl TransportSecretKey
impl TransportSecretKey
Sourcepub fn from_seed(seed: Vec<u8>) -> Result<TransportSecretKey, String>
pub fn from_seed(seed: Vec<u8>) -> Result<TransportSecretKey, String>
Creates a transport secret key from a 32-byte seed.
Sourcepub fn public_key(&self) -> Vec<u8> ⓘ
pub fn public_key(&self) -> Vec<u8> ⓘ
Returns the serialized public key associated with this secret key
Sourcepub fn deserialize(bytes: &[u8]) -> Result<Self, String>
pub fn deserialize(bytes: &[u8]) -> Result<Self, String>
Deserialize this transport secret key from a bytestring
Trait Implementations§
Source§impl Clone for TransportSecretKey
impl Clone for TransportSecretKey
Source§fn clone(&self) -> TransportSecretKey
fn clone(&self) -> TransportSecretKey
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 Drop for TransportSecretKey
impl Drop for TransportSecretKey
Auto Trait Implementations§
impl Freeze for TransportSecretKey
impl RefUnwindSafe for TransportSecretKey
impl Send for TransportSecretKey
impl Sync for TransportSecretKey
impl Unpin for TransportSecretKey
impl UnwindSafe for TransportSecretKey
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