Enum bee_message::signature::SignatureUnlock[][src]

#[non_exhaustive]
pub enum SignatureUnlock {
    Ed25519(Ed25519Signature),
}

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.

RFC: https://github.com/luca-moser/protocol-rfcs/blob/signed-tx-payload/text/0000-transaction-payload/0000-transaction-payload.md#signature-unlock-block

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

An Ed25519 signature.

Implementations

impl SignatureUnlock[src]

pub const KIND: u8[src]

The unlock kind of a SignatureUnlock

pub fn kind(&self) -> u8[src]

Returns the signature kind of a SignatureUnlock.

Trait Implementations

impl Clone for SignatureUnlock[src]

impl Debug for SignatureUnlock[src]

impl Eq for SignatureUnlock[src]

impl From<Ed25519Signature> for SignatureUnlock[src]

impl From<SignatureUnlock> for UnlockBlock[src]

impl Hash for SignatureUnlock[src]

impl Packable for SignatureUnlock[src]

type Error = Error

Associated error type.

impl PartialEq<SignatureUnlock> for SignatureUnlock[src]

impl StructuralEq for SignatureUnlock[src]

impl StructuralPartialEq for SignatureUnlock[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.