progress in removing core
This commit is contained in:
parent
50a8e8958a
commit
4025983ca7
8 changed files with 27 additions and 22 deletions
|
@ -19,8 +19,8 @@
|
|||
'''
|
||||
|
||||
from . import generate, hashers, getourkeypair, signing, encryption
|
||||
|
||||
generate = generate.generate_pub_key
|
||||
|
||||
keypair = getourkeypair.get_keypair()
|
||||
pub_key = keypair[0]
|
||||
priv_key = keypair[1]
|
||||
priv_key = keypair[1]
|
|
@ -1,6 +1,6 @@
|
|||
import utils # onionr utils epoch, not this utils
|
||||
from onionrutils import epoch
|
||||
def replay_timestamp_validation(timestamp):
|
||||
if utils.epoch.get_epoch() - int(timestamp) > 2419200:
|
||||
if epoch.get_epoch() - int(timestamp) > 2419200:
|
||||
return False
|
||||
else:
|
||||
return True
|
|
@ -1,6 +1,7 @@
|
|||
import nacl.encoding, nacl.public, nacl.signing
|
||||
from .. import getourkeypair
|
||||
import unpaddedbase32
|
||||
from onionrutils import bytesconverter, stringvalidators
|
||||
pair = getourkeypair.get_keypair()
|
||||
our_pub_key = pair[0]
|
||||
our_priv_key = pair[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue