code: def _sighash_final_hashing(self, copy_tx, sighash_type):
          '''
          Tx, int -> bytes
          Returns the hash that should be signed
          https://en.bitcoin.it/wiki/OP_CHECKSIG#Procedure_for_Hashtype_SIGHASH_ANYONECANPAY
          '''
          sighash = ByteData()
          sighash += copy_tx.to_bytes()
          sighash += utils.i2le_padded(sighash_type, 4)
  
          return utils.hash256(sighash.to_bytes()f _sighash_final_hashing(self, copy_tx, sighash_type):
          '''
          Tx, int -> bytes
          Returns the hash that should be signed
          https://en.bitcoin.it/wiki/OP_CHECKSIG#Procedure_for_Hashtype_SIGHASH_ANYONECANPAY
          '''
          sighash = ByteData()
          sighash += copy_tx.to_bytes()
          sighash += utils.i2le_padded(sighash_type, 4)
  
          return utils.hash256(sighash.to_bytes())
docs: Tx, int -> bytes
          Returns the hash that should be signed
          https://en.bitcoin.it/wiki/OP_CHECKSIG#Procedure_for_Hashtype_SIGHASH_ANYONECANPAY