Cryptography primitives for Hypercore
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.
Luke Murphy 3b22aef4b6
Fix up README example
10 months ago
hypercore_crypto Fix noqa ref and drop erroneous flags for isort 11 months ago
test Migrate to pyproject config 11 months ago
.drone.yml Try to install libsodium 12 months ago
.gitignore Migrate to pyproject config 11 months ago
CHANGELOG.md Migrate to pyproject config 11 months ago
LICENSE Roll out the new boilerplate 2 years ago
README.md Fix up README example 10 months ago
poetry.lock Add missing lock file 11 months ago
pyproject.toml Small case it 11 months ago

README.md

hypercore-crypto

Build Status

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