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

Human Approval Bound to Bitcoin Payment Intent

permalink THAMER
#ai-agents#bitcoin#software-architecture#wab-engine

Research scope

This is Stage 01, study 04, of Bitcoin for AI Agents. It is an educational reference design, not a live-tested integration or production SDK. The WAB Engine remains independent; wallet creation belongs to the Factory.

Architecture and rationale

Approval must authorize a specific wallet, network, destination and total debit, not merely a tool name. The engine remains responsible for its signed fee law. The agent cannot rewrite the fee or assume the recipient receives the full debit.

Reference implementation

This Rust example compares a proposed intent with an approved intent and checks expiry. It does not broadcast, store approvals, or implement address validation.

Rust · 15 lines
1#[derive(PartialEq, Eq)]
2pub struct Intent {
3    pub id: String,
4    pub wallet: String,
5    pub network: String,
6    pub address_type: String,
7    pub destination: String,
8    pub total_debit_sat: u64,
9}
10
11pub fn matches_approval(proposed: &Intent, approved: &Intent,
12                        now: u64, expires: u64) -> bool {
13    proposed == approved && proposed.network == "test"
14        && proposed.total_debit_sat > 0 && now < expires
15}

Security and limitations

An approval must originate in a trusted interface and be consumed atomically in persistent storage. Equality alone does not prevent replay. Reject changed destinations, expired approvals and unknown fee semantics.

Applying the pattern

Keep the model-facing interface separate from trusted execution. Review the current engine API before mapping fields or response data. Use a dedicated test wallet and explicit network configuration for any future live evaluation. The example does not change the engine, its signed fee law, or Bitcoin Core.

References and source

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