Struct bee_message::signature::Ed25519Signature
source · pub struct Ed25519Signature { /* private fields */ }Expand description
An Ed25519 signature.
Implementations§
source§impl Ed25519Signature
impl Ed25519Signature
sourcepub fn public_key(&self) -> &[u8; 32]
pub fn public_key(&self) -> &[u8; 32]
Returns the public key of an Ed25519Signature.
Trait Implementations§
source§impl Clone for Ed25519Signature
impl Clone for Ed25519Signature
source§fn clone(&self) -> Ed25519Signature
fn clone(&self) -> Ed25519Signature
Returns a copy 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 From<Ed25519Signature> for SignatureUnlock
impl From<Ed25519Signature> for SignatureUnlock
source§fn from(signature: Ed25519Signature) -> Self
fn from(signature: Ed25519Signature) -> Self
Converts to this type from the input type.
source§impl Hash for Ed25519Signature
impl Hash for Ed25519Signature
source§impl Packable for Ed25519Signature
impl Packable for Ed25519Signature
source§fn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
source§fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
fn pack<W: Write>(&self, writer: &mut W) -> Result<(), Self::Error>
Packs the instance to bytes and writes them to the passed writer.
source§fn unpack_inner<R: Read + ?Sized, const CHECK: bool>(
reader: &mut R
) -> Result<Self, Self::Error>
fn unpack_inner<R: Read + ?Sized, const CHECK: bool>( reader: &mut R ) -> Result<Self, Self::Error>
Reads bytes from the passed reader and unpacks them into an instance.
source§fn pack_new(&self) -> Vec<u8, Global>
fn pack_new(&self) -> Vec<u8, Global>
Packs the instance to bytes and writes them to a newly allocated vector.
source§impl PartialEq<Ed25519Signature> for Ed25519Signature
impl PartialEq<Ed25519Signature> for Ed25519Signature
source§fn eq(&self, other: &Ed25519Signature) -> bool
fn eq(&self, other: &Ed25519Signature) -> bool
This method tests for
self and other values to be equal, and is used
by ==.