Beispiel #1
0
 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())
Beispiel #2
0
 def witness_signing_hash(self):
     return utils.blake256(self.witness_signing())
Beispiel #3
0
 def witness_hash(self):
     return utils.blake256(self.witness())
Beispiel #4
0
 def prefix_hash(self):
     try:
         return self.tx_id_le  # Prevent redundant hashing
     except AttributeError:
         return utils.blake256(self.prefix())