Metadata-Version: 2.4
Name: tbn-agent-network
Version: 0.1.0
Summary: Trust-verified communication network for AI agents. The governed internet for AI.
Home-page: https://github.com/burhanyanbolu-design/project-hardin
Author: Burhan Yanbolu
Author-email: burhan@hardinai.co.uk
License: AGPL-3.0
Project-URL: Homepage, https://net.hardinai.co.uk
Project-URL: TBN Protocol, https://tbn.hardinai.co.uk
Project-URL: Documentation, https://github.com/burhanyanbolu-design/project-hardin
Project-URL: Bug Tracker, https://github.com/burhanyanbolu-design/project-hardin/issues
Keywords: ai,agents,trust,verification,governance,network,communication,cryptography,eu-ai-act,compliance,certification,identity,tbn
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
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
Classifier: Topic :: Security :: Cryptography
Classifier: Topic :: System :: Networking
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.28.0
Requires-Dist: cryptography>=41.0.0
Requires-Dist: flask>=3.0.0
Requires-Dist: tbn-protocol>=0.1.0
Provides-Extra: server
Requires-Dist: gunicorn>=21.0.0; extra == "server"
Provides-Extra: multinode
Requires-Dist: redis>=5.0.0; extra == "multinode"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# TBN Agent Network — Trust-Verified Agent Communication

The missing trust layer for AI agent-to-agent communication.

## What is this?

TBN Agent Network is a communication protocol where AI agents can only exchange messages if both parties are TBN-verified. Think of it as **mTLS for AI agents** — mutual trust verification before any message is accepted.

Built on top of [TBN Protocol](https://github.com/burhanyanbolu-design/tbn-protocol) (the identity and certification layer for AI agents).

## How it works

```
Agent A                    TBN Agent Network                    Agent B
   |                              |                               |
   |-- "I want to send msg" ----->|                               |
   |                              |-- Verify Agent A (TBN) ------>|
   |                              |<-- A is VALID ----------------|
   |                              |-- Verify Agent B (TBN) ------>|
   |                              |<-- B is VALID ----------------|
   |                              |                               |
   |                              |-- Deliver signed envelope --->|
   |                              |                               |
   |<-- Delivery receipt ---------|                               |
```

Every message carries a **TBN Verification Envelope**:
- Sender's TBN verification proof (cryptographically signed)
- Receiver's TBN verification proof
- Message payload (encrypted)
- Timestamp + nonce (replay protection)
- Network signature (proves the network verified both parties)

## Key Features

- **Mutual trust verification** — Both sender and receiver must be TBN-certified
- **Cryptographic envelopes** — Every message is signed and verifiable
- **Offline verification** — Recipients can verify envelopes without calling TBN again
- **Replay protection** — Nonce + timestamp prevents message replay attacks
- **Agent discovery** — Find certified agents by capability
- **Scalable** — Designed for thousands of concurrent agents
- **Uses live TBN** — Connects to tbn.hardinai.co.uk for real verification

## Architecture

```
┌─────────────────────────────────────────────────────┐
│                 TBN Agent Network                     │
│                                                      │
│  ┌──────────┐  ┌──────────────┐  ┌──────────────┐  │
│  │  Router  │  │  Envelope    │  │  Discovery   │  │
│  │  Layer   │  │  Signing     │  │  Registry    │  │
│  └────┬─────┘  └──────┬───────┘  └──────┬───────┘  │
│       │               │                  │          │
│  ┌────┴───────────────┴──────────────────┴───────┐  │
│  │           TBN Verification Gate                │  │
│  │     (calls tbn.hardinai.co.uk/api/verify)     │  │
│  └────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────┘
```

## Quick Start

```bash
pip install -r requirements.txt
python demo_network.py
```

## License

AGPL-3.0 — Hardin Enterprises Ltd (trading as Hardin AI Solutions)

## Links

- TBN Protocol: https://tbn.hardinai.co.uk
- GitHub: https://github.com/burhanyanbolu-design/tbn-protocol
- PyPI: https://pypi.org/project/tbn-protocol/
