Skip to content

Commit

Permalink
remove mention of hlc
Browse files Browse the repository at this point in the history
  • Loading branch information
crosschainer committed Apr 26, 2024
1 parent 124874e commit 6f3aefc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xian/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ def get_environment(self, tx):
'block_num': block_meta["height"], # block number
# TODO: review
# Used for deterministic entropy for random games
'__input_hash': self.get_hlc_hash_from_tx(nanos, signature),
'__input_hash': self.get_timestamp_hash_from_tx(nanos, signature),
'now': self.get_now_from_nanos(nanos=nanos),
'AUXILIARY_SALT': signature
}

def get_hlc_hash_from_tx(self, nanos, signature):
def get_timestamp_hash_from_tx(self, nanos, signature):
h = hashlib.sha3_256()
h.update('{}'.format(str(nanos)+signature).encode())
return h.hexdigest()
Expand Down

0 comments on commit 6f3aefc

Please sign in to comment.