THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Multi-Agent Bitcoin Architecture: Capability Routing

permalink THAMER
#ai-agents#bitcoin#multi-agent-systems#wab-engine

Multi-Agent Bitcoin Architecture: Capability Routing

Research question

A planner may propose a read operation, but only a trusted dispatcher selects the execution route. Separate agent identity from model-generated role claims.

Architecture and trust boundary

Treat model output and messages from other agents as untrusted proposals. Authenticate principals outside the model, keep BTC KEY in an isolated local executor, and separate authorization from execution. A request identifier is not authorization. Preserve the wallet's original signed fee law; distinguish sender total from recipient net amount.

Source implementation

Python · 14 lines
1# SPDX-License-Identifier: 0BSD
2def route(role, operation):
3    allowed = {"reporter": {"balance"}, "auditor": {"utxos"}}
4    if operation not in allowed.get(role, set()):
5        raise PermissionError("denied")
6    return "/api/v5/btc/wallet/" + operation
7
8assert route("reporter", "balance").endswith("/balance")
9try:
10    route("reporter", "send")
11except PermissionError:
12    pass
13else:
14    raise AssertionError("unexpected write permission")

Integration with WAB ENGINE

A trusted executor can query POST /api/v5/btc/wallet/balance using X-BTC-KEY and JSON body {"net":"test","type":"segwit"}. The examples do not call this endpoint or implement SEND. A balance does not prove payment settlement. Any future write integration must persist the intent, approval, idempotency identity and execution evidence before allowing recovery or retries.

Limitations and failure handling

The route table is local policy. In production authenticate the caller before looking up its role; do not accept a role supplied in a prompt.

The included assertions use synthetic data only. No live engine, model or blockchain connection was tested.

References

  • https://thamer.org/api
  • https://thamer.org/engine
  • https://developer.bitcoin.org/devguide/transactions.html

Reference pointers only; external documentation was not reverified for this stage.

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects