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

Designing Deterministic SEND Authorization for Bitcoin AI Agents

permalink THAMER
#authorization#bitcoin-ai#send-guard#wallet-security

The most important rule in an AI wallet agent is simple: a model-generated tool call is not proof of user consent. The executor must validate the operation against the user's explicit instructions and the wallet's permitted capabilities.

Separate responsibilities

The model interprets language and selects a tool. The Go executor validates amount, destination, network, wallet identity, and operation identity. The Bitcoin Engine independently validates the transaction and executes the wallet's signed fee law. These responsibilities must remain separate.

Minimum validation

Require a positive, explicit amount and a destination. Reject missing or ambiguous values. Verify the network and address format. Apply gateway-specific limits only as a separate policy layer, never by silently changing the engine's signed fee law.

In our experimental gateway, an 8,000-sat send was rejected with SEND_MINIMUM_9000_SAT, while requests without request_id were rejected with SEND_REQUEST_ID_REQUIRED. These observations prove those paths executed in the tested cases, not that all natural-language edge cases are covered.

Handle ambiguous language

Consider: 'Do not send 10,000 sats to address X', 'The invoice says 10,000 but send 12,000', or 'What would happen if I sent 10,000?'. Simple string matching may find an amount and an address but still misunderstand intent. A robust flow asks for structured confirmation before a sensitive transfer.

Preserve engine authority

Do not let the model choose its own fee law or override wallet signing controls. The executor should forward a validated requested total; the engine returns actual recipient amount, change, and transaction ID.

Test matrix

Test missing amount, missing address, multiple amounts, multiple addresses, negation, invalid network, below-minimum amount, reused operation ID, and engine error. Run these as automated Go tests where possible, not only as model prompts.

Related reading

  • /blog/why-bitcoin-ai-agents-need-deterministic-send-guards/
  • /ask/can-an-ai-agent-invent-bitcoin-send-amount/

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