pub fn sighash(
        &self,
        network_upgrade: NetworkUpgrade,
        hash_type: sighash::HashType,
        input: Option<(u32, transparent::Output)>,
    ) -> SigHash {
        sighash::SigHasher::new(self, hash_type, network_upgrade, input).sighash()
    }
/// Calculate the sighash for the current transaction
///
/// # Details
///
/// The `input` argument indicates the transparent Input for which we are
/// producing a sighash. It is comprised of the index identifying the
/// transparent::Input within the transaction and the transparent::Output
/// representing the UTXO being spent by that input.
///
/// # Panics
///
/// - if passed in any NetworkUpgrade from before NetworkUpgrade::Overwinter
/// - if called on a v1 or v2 transaction
/// - if the input index points to a transparent::Input::CoinBase
/// - if the input index is out of bounds for self.inputs()
Calculate the sighash for the current transaction
Calculate the sighash for the current transaction
pub fn sighash(
        &self,
        network_upgrade: NetworkUpgrade,
        hash_type: sighash::HashType,
        input: Option<(u32, transparent::Output)>,
    ) -> SigHash {
        sighash::SigHasher::new(self, hash_type, network_upgrade, input).sighash()
    }
pub fn sighash ( & self , network_upgrade : NetworkUpgrade , hash_type : sighash :: HashType , input : Option < ( u32 , transparent :: Output ) > , ) -> SigHash { sighash :: SigHasher :: new ( self , hash_type , network_upgrade , input ) . sighash ( ) }
Calculate the sighash for the current transaction
Calculate the sighash for the current transaction
&self
network_upgrade
NetworkUpgrade
hash_type
sighash::HashType
input
Option<(u32, transparent::Output)>
details
The `input` argument indicates the transparent Input for which we are
producing a sighash. It is comprised of the index identifying the
transparent::Input within the transaction and the transparent::Output
representing the UTXO being spent by that input.
The ` input ` argument indicates the transparent Input for which we are producing a sighash . It is comprised of the index identifying the transparent :: Input within the transaction and the transparent :: Output representing the UTXO being spent by that input .
panics
if passed in any NetworkUpgrade from before NetworkUpgrade::Overwinter
if called on a v1 or v2 transaction
if the input index points to a transparent::Input::CoinBase
if the input index is out of bounds for self.inputs()
if passed in any NetworkUpgrade from before NetworkUpgrade :: Overwinter if called on a v1 or v2 transaction if the input index points to a transparent :: Input :: CoinBase if the input index is out of bounds for self . inputs ()