Struct tor_interface::tor_crypto::X25519PrivateKey
source · pub struct X25519PrivateKey { /* private fields */ }
Implementations§
source§impl X25519PrivateKey
impl X25519PrivateKey
pub fn generate() -> X25519PrivateKey
pub fn from_raw(raw: &[u8; 32]) -> Result<X25519PrivateKey, Error>
pub fn from_base64(base64: &str) -> Result<X25519PrivateKey, Error>
pub fn sign_message( &self, message: &[u8] ) -> Result<(Ed25519Signature, SignBit), Error>
pub fn to_base64(&self) -> String
pub fn to_bytes(&self) -> [u8; 32]
Trait Implementations§
source§impl Clone for X25519PrivateKey
impl Clone for X25519PrivateKey
source§fn clone(&self) -> X25519PrivateKey
fn clone(&self) -> X25519PrivateKey
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 Debug for X25519PrivateKey
impl Debug for X25519PrivateKey
Auto Trait Implementations§
impl Freeze for X25519PrivateKey
impl RefUnwindSafe for X25519PrivateKey
impl Send for X25519PrivateKey
impl Sync for X25519PrivateKey
impl Unpin for X25519PrivateKey
impl UnwindSafe for X25519PrivateKey
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