Cryptography primitives for Hypercore
|
||
---|---|---|
hypercore_crypto | ||
test | ||
.drone.yml | ||
.gitignore | ||
CHANGELOG.md | ||
LICENSE | ||
poetry.lock | ||
pyproject.toml | ||
README.md |
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())