Cryptography primitives for Hypercore
Go to file
2020-07-07 15:33:28 +02:00
hypercore_crypto Migrate to pyproject config 2020-07-07 15:31:53 +02:00
test Migrate to pyproject config 2020-07-07 15:31:53 +02:00
.drone.yml Try to install libsodium 2020-06-30 02:08:31 +02:00
.gitignore Migrate to pyproject config 2020-07-07 15:31:53 +02:00
CHANGELOG.md Migrate to pyproject config 2020-07-07 15:31:53 +02:00
LICENSE Follow Hypercore protocol and reduce boilerplate 2020-05-16 18:38:29 +02:00
poetry.lock Add missing lock file 2020-07-07 15:33:28 +02:00
pyproject.toml Migrate to pyproject config 2020-07-07 15:31:53 +02:00
README.md Migrate to pyproject config 2020-07-07 15:31:53 +02:00

hypercore-crypto

Build Status

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())