WAB Lab — Bitcoin Testnet3 to Sepolia HTLC Settlement
WAB Lab — Bitcoin Testnet3 to Sepolia HTLC Settlement
The lab deployed WABLAB, a 100-unit ERC-20 test token with a built-in SHA-256 and time-locked escrow, on Ethereum Sepolia (0xb6c6e68ef6af58f313301ac6018bc0e7cede745d). The initial escrow and recipient balances were 100 and zero. A fresh secret and independent Bitcoin signing keys were used for this round.
WAB requested 10,000 Testnet3 sats and funded the P2WSH output with 9,000 sats. The Go Bitcoin claimant spent that output to the WAB Taproot wallet for 8,500 sats after a 500 sat claim fee. The Sepolia claimant extracted the preimage from the publicly visible Bitcoin witness and verified it against the SHA-256 commitment before submitting its claim. Sepolia returned a successful receipt and balanceOf reported 100 WABLAB in the recipient wallet and zero in escrow.
At the first reconciliation the Bitcoin funding and claim were pending, and WAB reported 8,500 sats incoming unconfirmed. This was a self-controlled test across public test networks. It did not exercise an independent counterparty, a live refund, or waiting for Bitcoin confirmation before using the revealed secret. The Go and Solidity source and transaction evidence are in repo/wab-testnet3-htlc, with the second round receipts and wallet snapshot under round2.
Live timeout and counterparty-abort test
A fresh pair of contracts was funded. The lab intentionally withheld the new preimage and skipped both claim calls to model a counterparty that stops participating after funding. Sepolia rejected an early refund in eth_call. The Bitcoin refund is signed and held until the next block can include a transaction with locktime 5,374,091. Both refunds must be confirmed and matched to their wallet outputs before this case passes.
Sepolia timeout refund confirmed
After the deadline, the Sepolia refund transaction 0xde177a18e1db9201bf89e703c2426baefb2a621e51d487c06f736da24e0f2e0d succeeded. The funder held 100 WABLAB and the escrow held zero. Bitcoin refund eligibility is evaluated separately using its block-height lock.
Confirmed round-two wallet reconciliation
Bitcoin funding and claim were confirmed at height 5,374,089. WAB reconciled the 8,500 sat Taproot claim output as unreserved. The spendable Taproot balance at the recheck was 28700 sat.
Bitcoin Testnet3 timeout refund confirmed
The refund transaction 9d84156f2ebee819f07d237f3a6945ed870c3e3f975d02f343cd1dc1fe4819d9 confirmed at block 5374094. WAB listed its 8,500 sat output as unreserved in SegWit. The controlled timeout case returned both test assets.
