Atomic Swap

Definition

An atomic swap is a trustless exchange of cryptocurrencies between two parties without intermediaries. The swap is "atomic" because it either completes entirely—both parties receive their funds—or fails entirely, with both parties keeping their original assets.

Technical Explanation

Atomic swaps use Hash Time-Locked Contracts (HTLCs). One party creates a secret and its hash, locking funds retrievable only with the secret. The counterparty locks their funds with the same hash. When the first party claims, they reveal the secret, allowing the counterparty to claim. Timeouts ensure refunds if uncompleted.

Post-quantum atomic swaps require HTLCs built on quantum-resistant hash functions and signatures. The hash commitment must resist quantum preimage attacks, and all locking/claiming signatures must use post-quantum schemes.

SynX Relevance

SynX supports atomic swaps with other quantum-resistant blockchains using SHA3-256 hash commitments and SPHINCS+ signatures. This enables trustless exchange without relying on centralized exchanges, maintaining both decentralization and quantum security.

Frequently Asked Questions

Can I atomic swap SynX with Bitcoin?
Cross-chain swaps require compatible protocols; SynX is working on bridge solutions.
What happens if a swap fails partway?
Timeouts trigger refunds—you never lose funds to incomplete swaps.
Are atomic swaps private?
Basic swaps are visible on-chain; enhanced privacy requires additional protocols.

Trustless exchange, quantum-secured. Swap with SynX