Struct bitcoin::util::bip143::SighashComponents [−][src]
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]
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]
&self,
txin: &TxIn,
script_code: &Script,
value: u64
) -> SigHash
Compute the BIP143 sighash for a SIGHASH_ALL
signature for the given
input.
Trait Implementations
impl Clone for SighashComponents
[src]
impl Clone for SighashComponents
[src]fn clone(&self) -> SighashComponents
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<SighashComponents> for SighashComponents
[src]
impl PartialEq<SighashComponents> for SighashComponents
[src]