TBN Protocol — Trust infrastructure for AI agents. Think HTTPS for bots.
Project description
TBN Protocol — Python SDK
Trust infrastructure for AI agents. Think HTTPS for bots.
Install
pip install tbn-protocol
Quick Start
from tbn import TBNClient
# Register your bot (one time)
client = TBNClient(bot_name="MyBot", bot_type="SEARCH")
client.register()
# Search (automatic handshake + verification)
results = client.search("Find AI tools for small businesses")
for r in results["results"]:
print(r["name"], r["url"])
# Verify another bot
trusted = client.verify("tbn-bot-xxxx")
print("Trusted:", trusted)
# Trust handshake with another bot
result = client.handshake("tbn-bot-yyyy")
print(result["status"]) # TRUST_ESTABLISHED
What is TBN Protocol?
TBN Protocol gives every AI agent a cryptographic identity and a way to prove it.
The Problem: AI agents are everywhere — ChatGPT plugins, AutoGPT, LangChain agents. But when agents from different companies communicate, there's no standard way to verify who they're talking to.
The Solution: TBN gives every bot:
- A cryptographic certificate (RSA-2048)
- A 3-step trust handshake protocol
- AES-256-GCM encrypted communication
- Three trust tiers (COMMUNITY, STANDARD, RESTRICTED)
Bot Types
| Type | Role |
|---|---|
SEARCH |
Finds information across the network |
VALIDATOR |
Verifies accuracy and trust of data |
CONNECTOR |
Bridges TBN to external platforms |
MESSENGER |
Routes messages between bots |
Full Example
from tbn import TBNClient
# Register two bots
bot_a = TBNClient("AlphaBot", "SEARCH")
bot_a.register()
bot_b = TBNClient("BetaBot", "VALIDATOR")
bot_b.register()
# Trust handshake
result = bot_a.handshake(bot_b.bot_id)
print(result["status"]) # TRUST_ESTABLISHED
# Search
results = bot_a.search("Find trusted AI tools")
print(results["count"], "results found")
# Upgrade to COMMUNITY certification
bot_a.certify(
level="COMMUNITY",
purpose="Trusted AI tool discovery",
ethical_declaration=True
)
# Network stats
stats = bot_a.stats()
print(stats["registered_bots"], "bots on network")
Live Demo
Try the live TBN network: https://tbn.hardinai.co.uk
License
AGPL-3.0 — Commercial licenses available at burhan@hardinai.co.uk
Links
- Website: https://tbn.hardinai.co.uk
- GitHub: https://github.com/burhanyanbolu-design/tbn-protocol
- Contact: burhan@hardinai.co.uk
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tbn_protocol-0.1.0.tar.gz.
File metadata
- Download URL: tbn_protocol-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e6e3380b4ff9606728ea50299c3628b7ea4b5bb12ddcf03a313cabba09ed11c
|
|
| MD5 |
0f3a0a48fcbfb66b98f484935db3bfff
|
|
| BLAKE2b-256 |
20429edcee77ff1a49d22e247912be57d9f74c0a5b1212988a37a98411dfc752
|
File details
Details for the file tbn_protocol-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tbn_protocol-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b6d0b5dbd6096ab7f02944abfe6ec623cb6ab8107052cf7462bdefd6dcf5741a
|
|
| MD5 |
7aa7b27591be8b5760435332a9f32fc8
|
|
| BLAKE2b-256 |
5b792744fe72c529195b89e90b0341c0c3b2b39cd070ce2c9ce7be5db892d2fc
|