Onionr/src/onionrcrypto/cryptoutils/replayvalidation.py

3 lines
130 B
Python
Raw Normal View History

2019-07-21 16:15:20 +00:00
from onionrutils import epoch
2019-07-20 00:01:16 +00:00
def replay_timestamp_validation(timestamp):
2019-11-27 00:19:28 +00:00
return epoch.get_epoch() - int(timestamp) <= 2419200