hypercore-crypto/README.md
Luke Murphy db5f71d240
Some checks failed
continuous-integration/drone/push Build is failing
Migrate to pyproject config
2020-07-07 15:31:53 +02:00

509 B

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