Monday, January 2, 2023

69/365: Atomic Swaps

 Today I learned about atomic swaps on Hedera Hashgraph. This allow two peers to exchange tokens between each other. There is no middleman and the transaction is decentralized; instead the two wallets transact directly with each other and the transaction is verified on the Hashgraph. Unlike other cryptos this does not require a smart contract and can be executed entirely with the tools in the Hedera SDK using only Javascript and NodeJS. These swaps are also highly customizable and transparent, meaning everyone can see where the funds are going and there's no need to trust any party. Tokens do not have to have monetary value and can represent things like voting rights, so the only limit to the abilities of the atomic swap is the imagination of the developer. Today I used an atomic swap to send a testnet NFT from one of my developer wallets to another wallet for a payment of 50 HBARs. 


No comments:

Post a Comment

190: Sablier

 The CodeHawks platform has an upcoming audit on the Sablier protocol, so I decided to read through the docs and familiarize myself with the...