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
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