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