[][src]Struct bitcoin_cash::TxPreimage

pub struct TxPreimage {
    pub version: i32,
    pub hash_prevouts: Sha256d,
    pub hash_sequence: Sha256d,
    pub outpoint: TxOutpoint,
    pub script_code: ByteArray,
    pub value: u64,
    pub sequence: u32,
    pub hash_outputs: Sha256d,
    pub lock_time: u32,
    pub sig_hash_type: u32,
}

Fields

version: i32hash_prevouts: Sha256dhash_sequence: Sha256doutpoint: TxOutpointscript_code: ByteArrayvalue: u64sequence: u32hash_outputs: Sha256dlock_time: u32sig_hash_type: u32

Implementations

impl TxPreimage[src]

pub fn build_preimages(tx: &impl ToPreimages) -> Vec<Vec<TxPreimage>>[src]

pub fn size_with_script(script_code: &Script) -> usize[src]

pub fn empty_with_script(script_code: &Script) -> TxPreimage[src]

pub fn to_byte_array(&self) -> ByteArray[src]

Trait Implementations

impl BitcoinDataType for TxPreimage[src]

type Type = BitcoinByteArray

impl Clone for TxPreimage[src]

impl Debug for TxPreimage[src]

impl Default for TxPreimage[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.