use libsecp256k1 if available. abstract away ecc stuff. move symmetric crypto and hash functions to crypto.py
This commit is contained in:
@@ -1,9 +1,24 @@
|
||||
import unittest
|
||||
import threading
|
||||
|
||||
from lib import constants
|
||||
|
||||
|
||||
class TestCaseForTestnet(unittest.TestCase):
|
||||
# some unit tests are modifying globals; sorry.
|
||||
class SequentialTestCase(unittest.TestCase):
|
||||
|
||||
test_lock = threading.Lock()
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.test_lock.acquire()
|
||||
|
||||
def tearDown(self):
|
||||
super().tearDown()
|
||||
self.test_lock.release()
|
||||
|
||||
|
||||
class TestCaseForTestnet(SequentialTestCase):
|
||||
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
|
||||
Reference in New Issue
Block a user