def hash(self):
    '\n        Calculate the block hash (block number, previous hash, transactions)\n        :return: String hash of block data (hex)\n        '
    block_dict = self._raw_data()
    block_string = json.dumps(block_dict, sort_keys=True).encode()
    return hashlib.sha256(block_string).hexdigest()
Calculate the block hash (block number, previous hash, transactions)
:return: String hash of block data (hex)
def hash(self):
    '\n        Calculate the block hash (block number, previous hash, transactions)\n        :return: String hash of block data (hex)\n        '
    block_dict = self._raw_data()
    block_string = json.dumps(block_dict, sort_keys=True).encode()
    return hashlib.sha256(block_string).hexdigest()