Struct bee_message::address::Ed25519Address [−][src]
pub struct Ed25519Address(_);
An Ed25519 address.
Implementations
impl Ed25519Address[src]
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]
&self,
msg: &[u8],
signature: &Ed25519Signature
) -> Result<(), Error>
Verifies a Ed25519Signature for a message against the Ed25519Address.
Trait Implementations
impl Clone for Ed25519Address[src]
impl Clone for Ed25519Address[src]fn clone(&self) -> Ed25519Address[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Ed25519Address[src]
impl Copy for Ed25519Address[src]impl Eq for Ed25519Address[src]
impl Eq for Ed25519Address[src]impl From<Ed25519Address> for Address[src]
impl From<Ed25519Address> for Address[src]fn from(address: Ed25519Address) -> Self[src]
impl FromStr for Ed25519Address[src]
impl FromStr for Ed25519Address[src]impl Hash for Ed25519Address[src]
impl Hash for Ed25519Address[src]impl Ord for Ed25519Address[src]
impl Ord for Ed25519Address[src]impl Packable for Ed25519Address[src]
impl Packable for Ed25519Address[src]type Error = Error
Associated error type.
fn packed_len(&self) -> usize[src]
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>[src]
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>[src]
reader: &mut R
) -> Result<Self, Self::Error>
pub fn pack_new(&self) -> Vec<u8, Global>[src]
pub fn unpack<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized, [src]
R: Read + ?Sized,
pub fn unpack_unchecked<R>(reader: &mut R) -> Result<Self, Self::Error> where
R: Read + ?Sized, [src]
R: Read + ?Sized,
impl PartialEq<Ed25519Address> for Ed25519Address[src]
impl PartialEq<Ed25519Address> for Ed25519Address[src]fn eq(&self, other: &Ed25519Address) -> bool[src]
fn ne(&self, other: &Ed25519Address) -> bool[src]
impl PartialOrd<Ed25519Address> for Ed25519Address[src]
impl PartialOrd<Ed25519Address> for Ed25519Address[src]fn partial_cmp(&self, other: &Ed25519Address) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for Ed25519Address[src]
impl StructuralEq for Ed25519Address[src]impl StructuralPartialEq for Ed25519Address[src]
impl StructuralPartialEq for Ed25519Address[src]Auto Trait Implementations
impl RefUnwindSafe for Ed25519Address
impl RefUnwindSafe for Ed25519Addressimpl Send for Ed25519Address
impl Send for Ed25519Addressimpl Sync for Ed25519Address
impl Sync for Ed25519Addressimpl Unpin for Ed25519Address
impl Unpin for Ed25519Addressimpl UnwindSafe for Ed25519Address
impl UnwindSafe for Ed25519AddressBlanket Implementations
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self
impl<T> ToBase32 for T where
T: AsRef<[u8]>, [src]
impl<T> ToBase32 for T where
T: AsRef<[u8]>, [src]pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32, [src]
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
pub fn to_base32(&self) -> Vec<u5, Global>[src]
impl<T> ToHex for T where
T: AsRef<[u8]>, [src]
impl<T> ToHex for T where
T: AsRef<[u8]>, [src]pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>, [src]
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>, [src]
U: FromIterator<char>,