onionr/src/onionrcrypto/cryptoutils/replayvalidation.py

3 lines
130 B
Python

from onionrutils import epoch
def replay_timestamp_validation(timestamp):
return epoch.get_epoch() - int(timestamp) <= 2419200