[][src]Struct zebra_chain::transaction::TransparentOutput

pub struct TransparentOutput {
    pub value: Amount<NonNegative>,
    pub pk_script: Script,

A transparent output from a transaction.

The most fundamental building block of a transaction is a transaction output -- the ZEC you own in your "wallet" is in fact a subset of unspent transaction outputs (or "UTXO"s) of the global UTXO set.

UTXOs are indivisible, discrete units of value which can only be consumed in their entirety. Thus, if I want to send you 1 ZEC and I only own one UTXO worth 2 ZEC, I would construct a transaction that spends my UTXO and sends 1 ZEC to you and 1 ZEC back to me (just like receiving change).


value: Amount<NonNegative>

Transaction value.

pk_script: Script

Usually contains the public key as a Bitcoin script setting up conditions to claim this output.

Trait Implementations

impl Clone for TransparentOutput[src]

impl Debug for TransparentOutput[src]

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

impl Eq for TransparentOutput[src]

impl PartialEq<TransparentOutput> for TransparentOutput[src]

impl Serialize for TransparentOutput[src]

impl StructuralEq for TransparentOutput[src]

impl StructuralPartialEq for TransparentOutput[src]

impl ZcashDeserialize for TransparentOutput[src]

impl ZcashSerialize for TransparentOutput[src]

Auto Trait Implementations

impl RefUnwindSafe for TransparentOutput

impl Send for TransparentOutput

impl Sync for TransparentOutput

impl Unpin for TransparentOutput

impl UnwindSafe for TransparentOutput

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,