Struct bee_message::address::Ed25519Address[][src]

pub struct Ed25519Address(_);

An Ed25519 address.

Implementations

impl Ed25519Address[src]

pub const KIND: u8[src]

The address kind of an Ed25519 address.

pub fn new(address: [u8; 32]) -> Self[src]

Creates a new Ed25519 address.

pub fn len(&self) -> usize[src]

Returns the length of an Ed25519 address.

pub fn verify(
    &self,
    msg: &[u8],
    signature: &Ed25519Signature
) -> Result<(), Error>
[src]

Verifies a Ed25519Signature for a message against the Ed25519Address.

Trait Implementations

impl AsRef<[u8]> for Ed25519Address[src]

impl Clone for Ed25519Address[src]

impl Copy for Ed25519Address[src]

impl Debug for Ed25519Address[src]

impl Display for Ed25519Address[src]

impl Eq for Ed25519Address[src]

impl From<[u8; 32]> for Ed25519Address[src]

impl From<Ed25519Address> for Address[src]

impl FromStr for Ed25519Address[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for Ed25519Address[src]

impl Ord for Ed25519Address[src]

impl Packable for Ed25519Address[src]

type Error = Error

Associated error type.

impl PartialEq<Ed25519Address> for Ed25519Address[src]

impl PartialOrd<Ed25519Address> for Ed25519Address[src]

impl StructuralEq for Ed25519Address[src]

impl StructuralPartialEq for Ed25519Address[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Base32Len for T where
    T: AsRef<[u8]>, 
[src]

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

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

impl<'f, T> CheckBase32<Vec<u5, Global>> for T where
    T: AsRef<[u8]>, 
[src]

type Err = Error

Error type if conversion fails

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> ToBase32 for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.