Core Features


Cryptographic Atomicity (All-or-Nothing Settlement)

The defining feature of an atomic swap is cryptographic atomicity. For any trade involving a set of assets {A₁, A₂, …, Aₙ}, the protocol enforces the invariant that settlement occurs if and only if all asset transfers succeed.

Formally:

∀i ∈ {1..n}, transfer(Aᵢ) ⇔ ∀j ∈ {1..n}, transfer(Aⱼ)

This guarantee is enforced at the protocol level using Hashed Time-Lock Contracts (HTLCs). There exists no execution path in which a subset of assets is transferred while others are not. Partial execution, partial fills, or conditional execution based on external actors are cryptographically impossible.

This property is particularly critical in OTC and cross-chain contexts, where counterparty trust and synchronous execution cannot be assumed.


Trustless Counterparty Interaction

Atomic swaps eliminate counterparty risk by replacing trust assumptions with cryptographic enforcement. At no point does either party need to trust that the other will behave honestly, remain online, or act in good faith.

The protocol guarantees that:

  • a counterparty cannot extract assets without fulfilling their obligations,

  • a counterparty cannot lock funds indefinitely,

  • a counterparty cannot unilaterally alter settlement terms after commitment.

Even if one party becomes malicious, unresponsive, or disappears entirely, the protocol resolves deterministically via refund paths enforced by timelocks.

This property allows ATOMICS to support high-value OTC trades between pseudonymous participants without requiring escrow agents, brokers, or legal enforcement mechanisms.


Time-Bound Execution and Deterministic Refunds

Each atomic swap includes explicit time constraints enforced by timelocks. These timelocks serve two purposes:

  1. They bound the maximum duration for which assets can be locked.

  2. They define deterministic refund conditions in the event of non-cooperation.

If settlement does not complete before expiration:

  • the secret required for redemption is never revealed,

  • the HTLC transitions into a refund state,

  • assets are returned to their original owners.

There is no ambiguity, discretionary judgment, or off-chain arbitration involved. Refund logic is encoded directly into the contract and executed automatically by the underlying blockchain.

This design ensures that liveness is preserved even under adverse network conditions or strategic griefing attempts.


Cross-Chain Composability Without Custodial Bridges

Unlike bridge-based approaches, atomic swaps do not rely on asset wrapping, synthetic representations, or custodial intermediaries. Each asset remains native to its originating chain throughout the lifecycle of the trade.

Cross-chain settlement is achieved by:

  • deploying HTLCs independently on each involved chain,

  • using a shared cryptographic secret across all contracts,

  • ordering timelocks to ensure safe secret propagation.

Because no shared custody layer exists:

  • compromise of one chain does not affect assets on another,

  • failure of relayers or coordination infrastructure does not result in asset loss,

  • systemic bridge risk is avoided entirely.

This property makes atomic swaps particularly well-suited for heterogeneous environments involving EVM chains, Solana, and UTXO-based blockchains.


MEV Resistance Through Private Negotiation and Deterministic Execution

Atomic swaps significantly reduce exposure to Miner/Maximal Extractable Value (MEV) by altering both the negotiation and execution surfaces.

Key characteristics include:

  • trade terms are negotiated off-chain and privately,

  • no public pending transaction reveals price intent,

  • on-chain execution is deterministic and pre-agreed.

Because atomic swaps do not rely on public mempool price discovery or pool-based execution, they are inherently resistant to:

  • front-running,

  • sandwich attacks,

  • back-running strategies.

This is especially important for large OTC trades and illiquid assets, where AMM-based execution is economically infeasible.


Support for Arbitrary Asset Sets and Bundled Trades

The atomic swap mechanism in ATOMICS is generalized beyond simple one-to-one token swaps.

An atomic swap may involve:

  • multiple assets per side,

  • mixed asset types (e.g., tokens + NFTs),

  • derivative position tokens,

  • staked liquidity tokens,

  • tokenized RWAs.

Formally, each side of the swap specifies a set of assets rather than a single asset. The atomicity invariant applies to the entire set.

This enables complex trade structures such as:

  • portfolio-for-portfolio exchanges,

  • NFT bundle trades,

  • derivative position rollovers,

  • multi-chain rebalancing transactions.

Despite this flexibility, settlement logic remains simple and auditable due to the underlying atomic swap primitive.


Minimal Trusted Computing Base

The atomic swap mechanism is intentionally designed with a minimal trusted computing base (TCB).

Trusted components are limited to:

  • the cryptographic hash function,

  • the correctness of the HTLC implementation,

  • the security of the underlying blockchains.

Untrusted components include:

  • off-chain coordination services,

  • messaging infrastructure,

  • user interfaces,

  • relayers and bots.

Even total failure or compromise of all off-chain components cannot result in loss of funds. At worst, it delays coordination or requires manual transaction submission.

This strict separation of trust is a core design goal and significantly simplifies security analysis.


Deterministic State Transitions and Auditability

Each atomic swap follows a minimal and deterministic state machine:

No additional states, branches, or discretionary transitions exist.

This simplicity:

  • reduces implementation risk,

  • simplifies formal verification,

  • improves audit coverage,

  • minimizes unexpected edge cases.

Auditors can reason exhaustively about all possible execution paths, which is not feasible in more complex pooled or order-book-based systems.


Compatibility with Institutional Trading Requirements

From an institutional perspective, atomic swaps provide several critical features that are difficult to achieve with AMMs or centralized venues:

  • deterministic settlement guarantees,

  • no hidden execution risk,

  • no exposure to pool liquidity dynamics,

  • no custodial counterparty risk,

  • predictable cost structure independent of trade size.

These properties make atomic swaps suitable for:

  • hedge funds,

  • proprietary trading desks,

  • structured product issuers,

  • large OTC market participants.

Last updated