Enum monero::blockdata::transaction::TxOutTarget[][src]

pub enum TxOutTarget {
    ToScript {
        keys: Vec<PublicKey>,
        script: Vec<u8>,
    },
    ToKey {
        key: PublicKey,
    },
    ToScriptHash {
        hash: Hash,
    },
}

Type of output formats, only TxOutTarget::ToKey is used, other formats are legacy to the original cryptonote implementation.

Variants

ToScript

A script output, not used.

Show fields

Fields of ToScript

keys: Vec<PublicKey>

A list of keys.

script: Vec<u8>

The script.

ToKey

A one-time public key output.

Show fields

Fields of ToKey

key: PublicKey

The one-time public key of that output.

ToScriptHash

A script hash output, not used.

Show fields

Fields of ToScriptHash

hash: Hash

The script hash

Implementations

impl TxOutTarget[src]

pub fn get_pubkeys(&self) -> Option<Vec<PublicKey>>[src]

Retreive the public keys, if any.

Trait Implementations

impl Clone for TxOutTarget[src]

impl Debug for TxOutTarget[src]

impl Decodable for TxOutTarget[src]

impl<'de> Deserialize<'de> for TxOutTarget[src]

impl Encodable for TxOutTarget[src]

impl Serialize for TxOutTarget[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.