Struct bee_message::prelude::Ed25519Signature[][src]

pub struct Ed25519Signature { /* fields omitted */ }

An Ed25519 signature.

Implementations

impl Ed25519Signature[src]

pub const KIND: u8[src]

The signature kind of an Ed25519Signature.

pub fn new(public_key: [u8; 32], signature: [u8; 64]) -> Self[src]

Creates a new Ed25519Signature.

pub fn public_key(&self) -> &[u8; 32][src]

Returns the public key of an Ed25519Signature.

pub fn signature(&self) -> &[u8]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Return the actual signature of an Ed25519Signature.

Trait Implementations

impl Clone for Ed25519Signature[src]

impl Debug for Ed25519Signature[src]

impl Eq for Ed25519Signature[src]

impl From<Ed25519Signature> for SignatureUnlock[src]

impl Hash for Ed25519Signature[src]

impl Packable for Ed25519Signature[src]

type Error = Error

Associated error type.

impl PartialEq<Ed25519Signature> for Ed25519Signature[src]

impl StructuralEq for Ed25519Signature[src]

impl StructuralPartialEq for Ed25519Signature[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.