Struct vodozemac::Ed25519Signature
source · [−]pub struct Ed25519Signature(_);
Expand description
An Ed25519 digital signature, can be used to verify the authenticity of a message.
Implementations
sourceimpl Ed25519Signature
impl Ed25519Signature
sourcepub fn from_slice(bytes: &[u8]) -> Result<Self, SignatureError>
pub fn from_slice(bytes: &[u8]) -> Result<Self, SignatureError>
Try to create a Ed25519Signature
from a slice of bytes.
sourcepub fn from_base64(signature: &str) -> Result<Self, SignatureError>
pub fn from_base64(signature: &str) -> Result<Self, SignatureError>
Try to create a Ed25519Signature
from an unpadded base64
representation.
Trait Implementations
sourceimpl Clone for Ed25519Signature
impl Clone for Ed25519Signature
sourcefn clone(&self) -> Ed25519Signature
fn clone(&self) -> Ed25519Signature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Ed25519Signature
impl Debug for Ed25519Signature
sourceimpl PartialEq<Ed25519Signature> for Ed25519Signature
impl PartialEq<Ed25519Signature> for Ed25519Signature
sourcefn eq(&self, other: &Ed25519Signature) -> bool
fn eq(&self, other: &Ed25519Signature) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Ed25519Signature) -> bool
fn ne(&self, other: &Ed25519Signature) -> bool
This method tests for !=
.
impl Copy for Ed25519Signature
impl Eq for Ed25519Signature
impl StructuralEq for Ed25519Signature
impl StructuralPartialEq for Ed25519Signature
Auto Trait Implementations
impl RefUnwindSafe for Ed25519Signature
impl Send for Ed25519Signature
impl Sync for Ed25519Signature
impl Unpin for Ed25519Signature
impl UnwindSafe for Ed25519Signature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more