hypercore-crypto/hypercore_crypto/__init__.py

32 lines
626 B
Python
Raw Normal View History

2019-08-07 06:31:30 +00:00
"""hypercore-crypto module."""
2019-10-05 09:34:57 +00:00
# Note(decentral1se): Included to match export list of the original Javascript
# reference implementation. However, we don't implement this function
# ourselves.
from nacl.hash import blake2b # noqa
2019-08-07 06:31:30 +00:00
from hypercore_crypto.crypto import ( # noqa
blake2b,
data,
discovery_key,
encode_unsigned_int64,
2019-10-05 09:34:57 +00:00
key_pair,
2019-08-07 06:31:30 +00:00
leaf,
parent,
random_bytes,
sign,
tree,
verify,
)
try:
import pkg_resources
except ImportError:
pass
try:
__version__ = pkg_resources.get_distribution('hypercore_crypto').version
except Exception:
__version__ = 'unknown'