[][src]Struct ed25519_dalek::Signature

pub struct Signature { /* fields omitted */ }

An ed25519 signature.


These signatures, unlike the ed25519 signature reference implementation, are "detached"—that is, they do not include a copy of the message which has been signed.


impl Signature[src]

pub fn to_bytes(&self) -> [u8; 64][src]

Convert this Signature to a byte array.

pub fn from_bytes(bytes: &[u8]) -> Result<Signature, SignatureError>[src]

Construct a Signature from a slice of bytes.

Trait Implementations

impl PartialEq<Signature> for Signature[src]

impl Eq for Signature[src]

impl Debug for Signature[src]

impl Copy for Signature[src]

impl Clone for Signature[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T> Same<T> for T

type Output = T

Should always be Self