Metadata-Version: 2.4
Name: bip322
Version: 0.1.7
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Security :: Cryptography
Classifier: License :: OSI Approved :: MIT License
License-File: LICENSE
Summary: Python ↔ Rust bridge for verifying BIP-322 Bitcoin message signatures.
Author-email: Aleksandr Kozlovskii <turosik.cy@gmail.com>
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Source, https://github.com/Turosik/bip322-py

# 🪙 bip322-py

**Python ↔ Rust bridge for [BIP-322](https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki) message verification**, powered by [rust-bitcoin/bip322](https://github.com/rust-bitcoin/bip322) and [PyO3](https://pyo3.rs).

This package provides a single, high-performance function for verifying BIP-322 (Bitcoin) signed messages directly from Python.

---

## ⚙️ Features

- Lightweight wrapper around the Rust `bip322` crate  
- Validates Bitcoin message signatures in **BIP-322 simple mode**  
- Works on **macOS** and **Linux**  
- Fully typed and pip-installable wheel (`.whl`)

---

## 🧩 Installation


### 🧑‍💻 For end users (from PyPI)

Simply install with pip:

```bash
pip install bip322
```


### From source (development)
```bash
# Create and activate venv (Python 3.8+)
python -m venv .venv
source .venv/bin/activate

# Install maturin and build
pip install maturin
maturin develop

