[][src]Struct wagyu_zcash::transaction::Outpoint

pub struct Outpoint<N: ZcashNetwork> {
    pub reverse_transaction_id: Vec<u8>,
    pub index: u32,
    pub amount: Option<ZcashAmount>,
    pub script_pub_key: Option<Vec<u8>>,
    pub redeem_script: Option<Vec<u8>>,
    pub address: Option<ZcashAddress<N>>,
}

Represents a Zcash transparent transaction outpoint

Fields

reverse_transaction_id: Vec<u8>

Previous transaction id (using Zcash RPC's reversed hash order) - 32 bytes

index: u32

Index of the transaction being used - 4 bytes

amount: Option<ZcashAmount>

Amount associated with the UTXO - used for segwit transaction signatures

script_pub_key: Option<Vec<u8>>

Script public key asssociated with claiming this particular input UTXO

redeem_script: Option<Vec<u8>>

Optional redeem script - for segwit transactions

address: Option<ZcashAddress<N>>

Address of the outpoint

Methods

impl<N: ZcashNetwork> Outpoint<N>[src]

pub fn new(
    reverse_transaction_id: Vec<u8>,
    index: u32,
    address: Option<ZcashAddress<N>>,
    amount: Option<ZcashAmount>,
    redeem_script: Option<Vec<u8>>,
    script_pub_key: Option<Vec<u8>>
) -> Result<Self, TransactionError>
[src]

Returns a new Zcash transaction outpoint

Trait Implementations

impl<N: Clone + ZcashNetwork> Clone for Outpoint<N>[src]

impl<N: Debug + ZcashNetwork> Debug for Outpoint<N>[src]

Auto Trait Implementations

impl<N> RefUnwindSafe for Outpoint<N> where
    N: RefUnwindSafe

impl<N> Send for Outpoint<N>

impl<N> Sync for Outpoint<N>

impl<N> Unpin for Outpoint<N> where
    N: Unpin

impl<N> UnwindSafe for Outpoint<N> where
    N: UnwindSafe

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.

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