Struct bitcoin::util::bip143::SighashComponents
source · pub struct SighashComponents {
pub hash_prevouts: Sighash,
pub hash_sequence: Sighash,
pub hash_outputs: Sighash,
/* private fields */
}
👎Deprecated since 0.24.0: please use [sighash::SighashCache] instead
Expand description
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 [sighash::SighashCache] instead
Hash of all the previous outputs
hash_sequence: Sighash
👎Deprecated since 0.24.0: please use [sighash::SighashCache] instead
Hash of all the input sequence nos
hash_outputs: Sighash
👎Deprecated since 0.24.0: please use [sighash::SighashCache] instead
Hash of all the outputs in this transaction
Implementations§
source§impl SighashComponents
impl SighashComponents
sourcepub fn new(tx: &Transaction) -> SighashComponents
pub fn new(tx: &Transaction) -> SighashComponents
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.
Trait Implementations§
source§impl Clone for SighashComponents
impl Clone for SighashComponents
source§fn clone(&self) -> SighashComponents
fn clone(&self) -> SighashComponents
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SighashComponents
impl Debug for SighashComponents
source§impl PartialEq<SighashComponents> for SighashComponents
impl PartialEq<SighashComponents> for SighashComponents
source§fn eq(&self, other: &SighashComponents) -> bool
fn eq(&self, other: &SighashComponents) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SighashComponents
impl StructuralEq for SighashComponents
impl StructuralPartialEq for SighashComponents
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more