Struct bee_message::prelude::Ed25519Signature
source · [−]pub struct Ed25519Signature { /* private fields */ }
Expand description
An Ed25519 signature.
Implementations
sourceimpl 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
sourceimpl Clone for Ed25519Signature
impl Clone for Ed25519Signature
sourcefn clone(&self) -> Ed25519Signature
fn clone(&self) -> Ed25519Signature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Ed25519Signature
impl Debug for Ed25519Signature
sourceimpl From<Ed25519Signature> for SignatureUnlock
impl From<Ed25519Signature> for SignatureUnlock
sourcefn from(signature: Ed25519Signature) -> Self
fn from(signature: Ed25519Signature) -> Self
Converts to this type from the input type.
sourceimpl Hash for Ed25519Signature
impl Hash for Ed25519Signature
sourceimpl Packable for Ed25519Signature
impl Packable for Ed25519Signature
sourcefn packed_len(&self) -> usize
fn packed_len(&self) -> usize
Returns the length of the packed bytes.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourceimpl PartialEq<Ed25519Signature> for Ed25519Signature
impl PartialEq<Ed25519Signature> for Ed25519Signature
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Ed25519Signature) -> bool
fn ne(&self, other: &Ed25519Signature) -> bool
This method tests for !=
.
impl Eq for Ed25519Signature
impl StructuralEq for Ed25519Signature
impl StructuralPartialEq for Ed25519Signature
Auto Trait Implementations
impl RefUnwindSafe for Ed25519Signature
impl Send for Ed25519Signature
impl Sync for Ed25519Signature
impl Unpin for Ed25519Signature
impl UnwindSafe for Ed25519Signature
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more