def _sighash_final_hashing(self, index: int, copy_tx: 'DecredTx', sighash_type: int) -> bytes: sighash = DecredByteData() sighash += utils.i2le_padded(sighash_type, 4) sighash += copy_tx.prefix_hash() sighash += copy_tx.witness_signing_hash() return utils.blake256(sighash.to_bytes())
def witness_signing_hash(self): return utils.blake256(self.witness_signing())
def witness_hash(self): return utils.blake256(self.witness())
def prefix_hash(self): try: return self.tx_id_le # Prevent redundant hashing except AttributeError: return utils.blake256(self.prefix())