Skip to main content

Swap

Garden is unlike traditional 'bridges' and doesn't have a custodian network or multi-sig securing the bridge. It is built using a decentralized Order Matching Engine and peer-to-peer Atomic Swaps. As a result, Garden's security and decentralization are deferred to the chains on which it is deployed, making it less vulnerable to attacks.

existingSolutions

By integrating the Garden SDK, you unlock the potential to bring Bitcoin into your DeFi application, providing your users with the ability to seamlessly swap actual Bitcoin (BTC) with any asset. This integration not only enhances the user experience but also positions your application at the forefront of DeFi innovation, attracting more users who value speed, security, and cross-chain compatibility.

New to Garden?

Garden's significant advantage is its ability to perform these swaps quickly and across different blockchains. This broad compatibility aims to enable seamless and secure Bitcoin support for various decentralized applications (dApps), expanding Bitcoin's utility and accessibility within the broader blockchain ecosystem.

📄️ Atomic Swaps

Hashed Time Locked Contracts (HTLCs) are a type of smart contract used in blockchain transactions to enforce a time-bound condition for transferring assets between parties. They require the receiver of a transaction to acknowledge receiving the payment by generating a cryptographic proof within a certain timeframe. This proof is a response to a cryptographic challenge embedded in the contract, typically involving a hash function. If the receiver fails to provide the correct proof within the specified time, the transaction is automatically reversed, returning the assets to the sender. HTLCs are crucial for enabling trustless and secure atomic swaps between different cryptocurrencies.