Skip to content

Commit 3b22aef

Browse files
committed
Fix up README example
1 parent b3f6204 commit 3b22aef

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,18 @@ $ pip install hypercore-crypto
1313
## Example
1414

1515
```python
16-
from hypercore_crypto import data, key_pair
1716
from pysodium import crypto_sign_PUBLICKEYBYTES
1817

18+
from hypercore_crypto import data, key_pair
19+
1920
public_key, secret_key = key_pair()
2021
assert len(public_key) == crypto_sign_PUBLICKEYBYTES
22+
2123
print(data(b"hello world").hex())
2224
```
25+
26+
Output:
27+
28+
```sh
29+
ccfa4259ee7c41e411e5770973a49c5ceffb5272d6a37f2c6f2dac2190f7e2b7
30+
```

0 commit comments

Comments
 (0)