[][src]Struct bitcoin::util::bip143::SighashComponents

pub struct SighashComponents {
    pub hash_prevouts: SigHash,
    pub hash_sequence: SigHash,
    pub hash_outputs: SigHash,
    // some fields omitted
}
👎 Deprecated since 0.24.0:

please use SigHashCache instead

Parts of a sighash which are common across inputs or signatures, and which are sufficient (in conjunction with a private key) to sign the transaction

Fields

hash_prevouts: SigHash
👎 Deprecated since 0.24.0:

please use SigHashCache instead

Hash of all the previous outputs

hash_sequence: SigHash
👎 Deprecated since 0.24.0:

please use SigHashCache instead

Hash of all the input sequence nos

hash_outputs: SigHash
👎 Deprecated since 0.24.0:

please use SigHashCache instead

Hash of all the outputs in this transaction

Implementations

impl SighashComponents[src]

pub fn new(tx: &Transaction) -> SighashComponents[src]

Compute the sighash components from an unsigned transaction and auxiliary information about its inputs. For the generated sighashes to be valid, no fields in the transaction may change except for script_sig and witnesses.

pub fn sighash_all(
    &self,
    txin: &TxIn,
    script_code: &Script,
    value: u64
) -> SigHash
[src]

Compute the BIP143 sighash for a SIGHASH_ALL signature for the given input.

Trait Implementations

impl Clone for SighashComponents[src]

impl Debug for SighashComponents[src]

impl Eq for SighashComponents[src]

impl PartialEq<SighashComponents> for SighashComponents[src]

impl StructuralEq for SighashComponents[src]

impl StructuralPartialEq for SighashComponents[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> 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.