WAB Lab — Bitcoin Testnet3 and Mock Token Settlement
WAB Lab — Bitcoin Testnet3 and Mock Token Settlement
We ran a Go compatibility test on the WAB lab server. The test generated a Testnet3 P2WSH script and signed synthetic spends. The btcd script engine accepted the correct preimage and claim key, rejected a wrong preimage and a wrong signing key, rejected a refund below the script lock height, and accepted the refund branch with the required transaction locktime. The refund test validates script execution. Block inclusion and transaction finality were outside the fixture.
The fixture passed the preimage exposed by the accepted Bitcoin witness to an in-memory token escrow. The escrow rejected a wrong secret, credited 100 simulated units once, and rejected a replay. This was a mock token balance. No EVM contract, Sepolia transaction, or Bitcoin broadcast was involved. The fixture uses deliberately public keys and a public secret. Never fund its output.
A separate WAB health check verified that the lab node was synchronized on Bitcoin Testnet3. The fixture did not call WAB for funding or output monitoring. Those integration paths and a deployed ERC-20 escrow remain to be tested.
Reproduce with go test -count=1 -v -json ./... in repo/wab-testnet3-htlc. The directory includes the recorded test events and WAB health snapshot.
Live Testnet3 follow-up
WAB wallet/send accepted a 10,000 sat request. The P2WSH contract output held 9,000 sat as verified from the transaction. A Go claim transaction spent that output and paid 8,500 sat to the WAB Taproot address after a 500 sat claim fee. The witness preimage obtained from the public transaction matched the original SHA-256 commitment. The repo contains the public transaction and status evidence. The live leg exercised WAB wallet/send and tx/status, with an external broadcaster for the claim. The token leg remained a local mock.
Confirmed Bitcoin Testnet3 leg
On 2026-11-28, the Testnet3 explorer reported both transactions confirmed in block 5,374,088. The block transaction list independently checked against the two transaction IDs contains both the 9,000 sat funding transaction and the claim returning 8,500 sat to the WAB Taproot address. The initial WAB status snapshot reported one confirmation for funding and unknown for the claim. The repo records both observations and the WAB recheck. The token leg remained a local mock.
WAB wallet reconciliation by address type
At 2026-11-28T15:39:54Z, wallet/balance returned 119437 confirmed and spendable sats for the SegWit funding wallet and 20200 confirmed and spendable sats for the Taproot receiving wallet. Both snapshots were fresh at height 5374088. Wallet/utxos matched the funding transaction change at output 2 for 109,437 sat and matched the claim at output 0 for 8,500 sat in Taproot. The claim output was unreserved, with no pending spend or unconfirmed incoming balance. This confirms wallet credit even though the earlier generic tx/status call returned unknown for the claim. See live-wallet-reconciliation.json.
