pub struct Ed25519Signature { /* private fields */ }
Expand description
A Algorithm::Ed25519
Signature
Implementations§
Source§impl Ed25519Signature
impl Ed25519Signature
Sourcepub fn from_bytes(signature: [u8; 64]) -> Self
pub fn from_bytes(signature: [u8; 64]) -> Self
Generate a signature from the raw 64 bytes.
Sourcepub fn from_slice(bytes: &[u8]) -> Result<Self, Error>
pub fn from_slice(bytes: &[u8]) -> Result<Self, Error>
Generate a signature from the raw bytes slice.
Returns an error if the slice has legnth != 64.
Trait Implementations§
Source§impl Clone for Ed25519Signature
impl Clone for Ed25519Signature
Source§fn clone(&self) -> Ed25519Signature
fn clone(&self) -> Ed25519Signature
Returns a duplicate 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 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