hyperpy / hypercore-crypto

Cryptography primitives for Hypercore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Cryptography primitives for Hypercore

License:GNU General Public License v3.0


Languages

Language:Python 100.0%