pub struct SighashComponents {
pub hash_prevouts: SigHash,
pub hash_sequence: SigHash,
pub hash_outputs: SigHash,
/* private fields */
}
👎Deprecated since 0.24.0: please use
SigHashCache
insteadExpand 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
SigHashCache
insteadHash of all the previous outputs
hash_sequence: SigHash
👎Deprecated since 0.24.0: please use
SigHashCache
insteadHash of all the input sequence nos
hash_outputs: SigHash
👎Deprecated since 0.24.0: please use
SigHashCache
insteadHash 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 for SighashComponents
impl PartialEq for SighashComponents
impl Eq for SighashComponents
impl StructuralPartialEq for SighashComponents
Auto Trait Implementations§
impl Freeze for SighashComponents
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