Designing a WAB Atomic Swap SDK from Controlled Testnet Evidence
Recorded evidence and engineering implications
The observed implementation uses external Go tools for Bitcoin signing and EVM execution, with WAB funding and wallet reconciliation. A proposed SDK should persist a swap identifier, network identifiers, contract addresses, outpoints, hash commitment, deadlines and evidence for each transition. Never persist unrevealed secrets in public logs. Model funded, claim observed, claim confirmed, wallet reconciled, refund eligible and refunded separately for each chain. A mempool secret can be exposed even if its transaction is replaced or never confirms. Confirmation policy, timeout margins, fee escalation, reorg recovery and independent counterparty testing remain open. The fixed 500 sat fee in the lab is not a production fee estimator. No public liquidity, exchange rate or mainnet safety is established.
Evidence
Scope
This analysis uses archived laboratory observations; no transactions were independently broadcast or verified against live nodes during editorial review.
Primary reference: https://thamer.org/api
