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
sourceimpl 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
sourceimpl Clone for SighashComponents
impl Clone for SighashComponents
sourcefn clone(&self) -> SighashComponents
fn clone(&self) -> SighashComponents
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SighashComponents
impl Debug for SighashComponents
sourceimpl PartialEq<SighashComponents> for SighashComponents
impl PartialEq<SighashComponents> for SighashComponents
sourcefn eq(&self, other: &SighashComponents) -> bool
fn eq(&self, other: &SighashComponents) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more