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

pub enum TxIn {
    Gen {
        height: VarInt,
    },
    ToKey {
        amount: VarInt,
        key_offsets: Vec<VarInt>,
        k_image: KeyImage,
    },
    ToScript,
    ToScriptHash,
}

A transaction input, either a coinbase spend or a one-time key spend which defines the ring size and the key image to avoid double spend.

Variants

Gen

A coinbase input.

Show fields

Fields of Gen

height: VarInt

Block height of where the coinbase transaction is included.

ToKey

A key input from a key output.

Show fields

Fields of ToKey

amount: VarInt

Amount spend from the output, 0 in case of CT.

key_offsets: Vec<VarInt>

Relative offsets of keys use in the ring.

k_image: KeyImage

The corresponding key image of the output.

ToScript

Input from script output, not used.

ToScriptHash

Input from script hash output, not used.

Trait Implementations

impl Clone for TxIn[src]

impl Debug for TxIn[src]

impl Decodable for TxIn[src]

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

impl Encodable for TxIn[src]

impl Serialize for TxIn[src]

impl StrictDecode for TxIn[src]

This is supported on crate feature strict_encoding_support only.

impl StrictEncode for TxIn[src]

This is supported on crate feature strict_encoding_support only.

Auto Trait Implementations

impl RefUnwindSafe for TxIn

impl Send for TxIn

impl Sync for TxIn

impl Unpin for TxIn

impl UnwindSafe for TxIn

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.