Cryptography primitives for Hypercore
转到文件
Luke Murphy 3b22aef4b6
continuous-integration/drone/push Build is passing 详情
Fix up README example
2020-08-05 08:31:12 +02:00
hypercore_crypto Fix noqa ref and drop erroneous flags for isort 2020-07-07 15:53:58 +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
README.md Fix up README example 2020-08-05 08:31:12 +02:00
poetry.lock Add missing lock file 2020-07-07 15:33:28 +02:00
pyproject.toml Small case it 2020-07-07 15:56:31 +02:00

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