509 B
509 B
hypercore-crypto
Cryptography primitives for Hypercore
Install
$ pip install hypercore-crypto
Example
from hypercore_crypto import data, key_pair
from pysodium import crypto_sign_PUBLICKEYBYTES
public_key, secret_key = key_pair()
assert len(public_key) == crypto_sign_PUBLICKEYBYTES
print(data(b"hello world").hex())