progress in removing core

This commit is contained in:
Kevin Froman 2019-07-21 11:15:20 -05:00
parent 50a8e8958a
commit 4025983ca7
8 changed files with 27 additions and 22 deletions

View file

@ -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]

View file

@ -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

View file

@ -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]