Enum bee_message::signature::SignatureUnlock
source · pub enum SignatureUnlock {
Ed25519(Ed25519Signature),
}Expand description
A SignatureUnlock contains a signature which is used to unlock a transaction input.
This is defined as part of the Unspent Transaction Output (UTXO) transaction protocol.
Variants§
Ed25519(Ed25519Signature)
An Ed25519 signature.
Implementations§
Trait Implementations§
source§impl Clone for SignatureUnlock
impl Clone for SignatureUnlock
source§fn clone(&self) -> SignatureUnlock
fn clone(&self) -> SignatureUnlock
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 SignatureUnlock
impl Debug for SignatureUnlock
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 From<SignatureUnlock> for UnlockBlock
impl From<SignatureUnlock> for UnlockBlock
source§fn from(signature: SignatureUnlock) -> Self
fn from(signature: SignatureUnlock) -> Self
Converts to this type from the input type.
source§impl Hash for SignatureUnlock
impl Hash for SignatureUnlock
source§impl Packable for SignatureUnlock
impl Packable for SignatureUnlock
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<SignatureUnlock> for SignatureUnlock
impl PartialEq<SignatureUnlock> for SignatureUnlock
source§fn eq(&self, other: &SignatureUnlock) -> bool
fn eq(&self, other: &SignatureUnlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.