You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
continuous-integration/drone/push Build is passing
Details
|
3 years ago | |
---|---|---|
hypercore_crypto | 3 years ago | |
test | 3 years ago | |
.drone.yml | 3 years ago | |
.gitignore | 3 years ago | |
CHANGELOG.md | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
poetry.lock | 3 years ago | |
pyproject.toml | 3 years ago |
README.md
hypercore-crypto
Cryptography primitives for Hypercore
Install
$ pip install hypercore-crypto
Example
from pysodium import crypto_sign_PUBLICKEYBYTES
from hypercore_crypto import data, key_pair
public_key, secret_key = key_pair()
assert len(public_key) == crypto_sign_PUBLICKEYBYTES
print(data(b"hello world").hex())
Output:
ccfa4259ee7c41e411e5770973a49c5ceffb5272d6a37f2c6f2dac2190f7e2b7