Metadata-Version: 2.4
Name: lobstr-core
Version: 0.4.0
Summary: Nostr crypto primitives and relay client for autonomous agents
License-Expression: MIT
Keywords: agent,crypto,nostr,relay
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security :: Cryptography
Requires-Python: >=3.10
Provides-Extra: websocket
Requires-Dist: websockets>=14.0; extra == 'websocket'
Description-Content-Type: text/markdown

# lobstr-core

Nostr crypto primitives and relay client for autonomous agents.

Pure Python BIP340 Schnorr signatures and secp256k1 point arithmetic with zero external dependencies.

## Install

```bash
pip install lobstr-core
```

For websocket relay support, install with the optional extra:

```bash
pip install lobstr-core[websocket]
```

Note: If you're using `lobstrd`, websocket support is included automatically.

## Usage

```python
import secrets
from lobstr.core.nostr_crypto import pubkey_gen_xonly, schnorr_sign

secret = secrets.token_bytes(32)
pubkey = pubkey_gen_xonly(secret)
```
