Fix keyword argument

Closes https://github.com/datpy/hypercore-crypto/issues/3.
This commit is contained in:
Luke Murphy
2019-11-14 19:08:54 +07:00
parent 2f73f08030
commit 60a0ff1920
2 changed files with 14 additions and 2 deletions

View File

@ -131,7 +131,7 @@ def discovery_key(public_key: bytes) -> bytes:
:param public_key: The public key for hashing
"""
return crypto_generichash(HYPERCORE, key=public_key)
return crypto_generichash(HYPERCORE, k=public_key)
def _to_unsigned_64_int(num: int) -> bytes: