Security
On-chain Hash Time-Locked Contracts enforce every swap. No server ever holds keys, trusting your counterparty is unnecessary, and a time-lock stands behind recoverability of funds.
Guarantees Built Into the Contracts
Each property below comes from the HTLC contracts on the respective chain rather than from any BuiId on Bitcoin policy.
Non-Custodial by Design
Across the whole swap lifecycle, neither BuiId on Bitcoin nor any third party ever holds participant funds. Assets travel straight between wallets the participants control, guided by on-chain HTLC contracts. The protocol coordinates; it never takes custody.
Time-Lock Refund Guarantee
Each HTLC carries a timeout that cannot be skipped. When a swap fails to finish inside the agreed window, the contracts open on their own and send funds back to their original owners. Nobody has to intervene by hand because the chain itself handles the refund.
Atomic Settlement
A shared hash preimage joins the two HTLC contracts, and that makes the outcome binary: both sides receive their assets or neither does. No partial-settlement state exists. Because the contracts are cryptographically bound, one side cannot execute the trade alone.
No KYC or Account Required
No account registration, identity check, or persistent session is needed to use the protocol. Any wallet that can sign for the target chain may join a swap. Whether you can trade depends on on-chain capability rather than on platform approval.
Risks We Plan For and How
Atomic swaps built on HTLCs have had their weak points studied hard. The table sets out how the protocol answers each one.
| Risk Vector | Description | Mitigation |
|---|---|---|
| Griefing Attack | One side locks funds and then declines to reveal the preimage, leaving the initiator stuck until the timeout runs out. | Timeouts are staggered so the initiator's refund window always outlasts the responder's claim window. The capital cost of griefing therefore sits with the attacker. |
| Preimage Front-Running | Someone watching the chain lifts the preimage from a pending transaction and claims before the intended recipient can. | Claim transactions are built so that only the intended recipient may redeem with the preimage, a rule the HTLC's recipient condition enforces. |
| Chain Reorg | A reorg on one chain wipes out an HTLC event that looked confirmed. | Per-chain confirmation counts (listed on the Protocol page) are set so that reorg-based attacks stop paying off at current hashrate levels. |
| MEV / Sandwich | On EVM chains, validators or searchers reorder transactions to pull value away from swap participants. | HTLC swaps never pass through AMM liquidity pools, which removes the sandwich vector. This Protocol Notes piece walks through the full analysis. |
Go Through the Whole Protocol
The architecture docs work through the threat model for every component. Enterprise integrators can request the security audit reports.