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

Shared Bitcoin Wallets: Multi-Agent Execution Boundaries

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

Shared Bitcoin Wallets: Multi-Agent Execution Boundaries

Research question

Expose a narrow read result to an authenticated reporting agent instead of forwarding a raw wallet response. A shared wallet credential must remain in the executor.

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 · 11 lines
1# SPDX-License-Identifier: 0BSD
2def report(role, response):
3    if role != "reporter" or response.get("ok") is not True:
4        raise PermissionError("unavailable")
5    result = response["result"]
6    amount = result["balance_sat"]
7    if type(amount) is not int or amount < 0:
8        raise ValueError("invalid balance")
9    return {"balance_sat": amount}
10
11assert report("reporter", {"ok": True, "result": {"balance_sat": 500, "btc_id": "private-scope"}}) == {"balance_sat": 500}

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

A narrow response is not credential attenuation. Isolate the executor process and enforce access to its local API. The synthetic response below is not a live wallet result.

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