Struct vodozemac::Ed25519Signature
source · pub struct Ed25519Signature(/* private fields */);
Expand description
An Ed25519 digital signature, can be used to verify the authenticity of a message.
Implementations§
source§impl 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§
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
source§impl Display for Ed25519Signature
impl Display for Ed25519Signature
source§impl PartialEq for Ed25519Signature
impl PartialEq for Ed25519Signature
source§fn 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 ==
.impl Copy for Ed25519Signature
impl Eq for Ed25519Signature
impl StructuralPartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)