Implement key_pair, sign, and verify

This commit is contained in:
Luke Murphy
2019-10-05 11:34:57 +02:00
parent f43cf4fa52
commit 1072d2662a
3 changed files with 38 additions and 22 deletions

9
test/test_crypto.py Normal file
View File

@ -0,0 +1,9 @@
"""Cryptography primitives test module."""
from hypercore_crypto import key_pair
def test_key_pair_length():
public_key, secret_key = key_pair()
assert len(public_key) == 32
assert len(secret_key) == 64