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

Can a Bitcoin Engine Participate in Cross-Chain Atomic Swaps?

permalink THAMER
#ai-agents#bitcoin#chatgpt#codex#engineering#wab

Yes, as a component of a larger protocol. In the laboratory, WAB funded a compatible Bitcoin P2WSH output and later reconciled the proceeds in its wallet. External Go code constructed and signed the contract spend, and an Ethereum adapter interacted with the Sepolia escrow. The engine did not need to execute Solidity or implement a new wallet fee law.

What connects the chains?

Both contracts use a commitment to the same secret. The Bitcoin claim reveals the preimage in its witness; the Ethereum claimant verifies that preimage against the commitment and uses it to satisfy the other contract. Each chain independently enforces its own signature or caller authorization and timeout rules. The shared hash alone is not a complete swap protocol.

What did the laboratory verify?

Round two recorded a 9,000 sat Bitcoin contract output and an 8,500 sat claim into Taproot, alongside 100 WABLAB delivered on Sepolia. Both Bitcoin transactions confirmed at height 5,374,089. A separate round verified refunds on both networks.

JSON · 14 lines
1{
2  "status": "fresh",
3  "confirmed_sat": 28700,
4  "spendable_sat": 28700,
5  "scan_height": 5374089,
6  "matches": [
7    {
8      "txid": "3c34750dce2c37706651ab5973b0a35be3c0327325718710ee7ebbb38a48d618",
9      "vout": 0,
10      "value_sat": 8500,
11      "reserved": false
12    }
13  ]
14}

Is it ready for independent traders?

Not on this evidence alone. Both participants were controlled by the lab, and the preimage was used while Bitcoin was pending. A production protocol needs reviewed timeout ordering, confirmation policies, key isolation, fee and broadcast recovery, and tests against adversarial behavior. The observed WAB SEND request and actual contract output also differed; a swap adapter must validate the funded amount rather than assume the requested amount reached the contract.

Primary lab references

https://thamer.org/api

https://thamer.org/ask/wab-testnet3-htlc-proof

https://thamer.org/ask/wab-testnet3-sepolia-settlement

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