[−][src]Struct bitcoin::util::bip143::SighashComponents
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
please use SigHashCache
instead
Hash of all the previous outputs
hash_sequence: SigHash
please use SigHashCache
instead
Hash of all the input sequence nos
hash_outputs: SigHash
please use SigHashCache
instead
Hash of all the outputs in this transaction
Methods
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]
fn clone(&self) -> SighashComponents
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<SighashComponents> for SighashComponents
[src]
fn eq(&self, other: &SighashComponents) -> bool
[src]
fn ne(&self, other: &SighashComponents) -> bool
[src]
impl Eq for SighashComponents
[src]
impl Debug for SighashComponents
[src]
Auto Trait Implementations
impl Unpin for SighashComponents
impl Sync for SighashComponents
impl Send for SighashComponents
impl UnwindSafe for SighashComponents
impl RefUnwindSafe for SighashComponents
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,