Struct tor_interface::tor_crypto::Ed25519Signature
source · pub struct Ed25519Signature { /* private fields */ }
Implementations§
source§impl Ed25519Signature
impl Ed25519Signature
pub fn from_raw(raw: &[u8; 64]) -> Result<Ed25519Signature, Error>
pub fn verify(&self, message: &[u8], public_key: &Ed25519PublicKey) -> bool
pub fn verify_x25519( &self, message: &[u8], public_key: &X25519PublicKey, signbit: SignBit ) -> bool
pub fn to_bytes(&self) -> [u8; 64]
Trait Implementations§
source§impl Clone for Ed25519Signature
impl Clone for Ed25519Signature
source§fn clone(&self) -> Ed25519Signature
fn clone(&self) -> Ed25519Signature
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 Ed25519Signature
impl Debug for Ed25519Signature
Auto Trait Implementations§
impl Freeze for Ed25519Signature
impl RefUnwindSafe for Ed25519Signature
impl Send for Ed25519Signature
impl Sync for Ed25519Signature
impl Unpin for Ed25519Signature
impl UnwindSafe for Ed25519Signature
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