[−][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
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]
&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]
impl Debug for SighashComponents
[src]
impl Eq for SighashComponents
[src]
impl PartialEq<SighashComponents> for SighashComponents
[src]
fn eq(&self, other: &SighashComponents) -> bool
[src]
fn ne(&self, other: &SighashComponents) -> bool
[src]
impl StructuralEq for SighashComponents
[src]
impl StructuralPartialEq for SighashComponents
[src]
Auto Trait Implementations
impl RefUnwindSafe for SighashComponents
impl Send for SighashComponents
impl Sync for SighashComponents
impl Unpin for SighashComponents
impl UnwindSafe for SighashComponents
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,