hypercore-crypto

Cryptography primitives for Hypercore


Keywords
hypercore, hypercore-protocol
License
GPL-3.0
Install
pip install hypercore-crypto==0.0.1a4

Documentation

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