hypercore-crypto/README.md

23 lines
509 B
Markdown
Raw Normal View History

# hypercore-crypto
2020-05-16 16:38:51 +00:00
[![Build Status](https://drone.autonomic.zone/api/badges/hyperpy/hypercore-crypto/status.svg)](https://drone.autonomic.zone/hyperpy/hypercore-crypto)
## Cryptography primitives for Hypercore
2020-07-07 13:31:26 +00:00
## Install
```sh
$ pip install hypercore-crypto
```
2020-07-07 13:31:26 +00:00
## Example
```python
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())
```