We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3f6204 commit 3b22aefCopy full SHA for 3b22aef
1 file changed
README.md
@@ -13,10 +13,18 @@ $ pip install hypercore-crypto
13
## Example
14
15
```python
16
-from hypercore_crypto import data, key_pair
17
from pysodium import crypto_sign_PUBLICKEYBYTES
18
+from hypercore_crypto import data, key_pair
19
+
20
public_key, secret_key = key_pair()
21
assert len(public_key) == crypto_sign_PUBLICKEYBYTES
22
23
print(data(b"hello world").hex())
24
```
25
26
+Output:
27
28
+```sh
29
+ccfa4259ee7c41e411e5770973a49c5ceffb5272d6a37f2c6f2dac2190f7e2b7
30
+```
0 commit comments