Skip to content
Snippets Groups Projects
Commit 4cc96e1b authored by inso's avatar inso
Browse files

Fixing import error

parent c6721586
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return Mock()
MOCK_MODULES = ['libnacl']
MOCK_MODULES = ['libnacl.sign']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
# If your documentation needs a minimal Sphinx version, state it here.
......
......@@ -5,7 +5,8 @@ Ucoin public and private keys
"""
import base58
import libnacl
import base64
import libnacl.sign
from pylibscrypt import scrypt
......@@ -22,7 +23,6 @@ def _ensure_bytes(data):
return data
class SigningKey(libnacl.sign.Signer):
def __init__(self, salt, password):
salt = _ensure_bytes(salt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment