Deep Dive into Atomic Swaps - What can we Expect?

in Project HOPE5 years ago (edited)

What are atomic swaps and why it matters?

I assume majority of you guys read an article written by steemit.inc in which they propose implementing atomic swaps between steem and tron, thus enabling two different economies to coexist and extract mutual benefits without interfering with another projects sovereignty or autonomy.

Despite the fact i personally don't find anything interesting around tron i still consider it valuable in a some sense.

I won't jump to a conclusion before official discussion takes place, but will brake down what it means and what to expect in case we actually agree on common goals.

Will not look into details in regards to recent acquisition as the trending page is already full of it and there is no need to discuss it further.

Lets dive into it.

Atomic Swap

Atomic swaps are relatively new discovery with a potential to disrupt the way we transfer value accross the internet, thus revolutionize transacting per se.

Given the fact that trading can and is sometimes annoying and time consuming, especially if one decides to trade tokens which aren't supported by big exchanges. atomic swap might be a good solution.

For instance, you have RC20 token and you want to swap it for lets say bitcoin. The common practice would be swaping for its native currency, that is ETH and afterwards utilizing exchange to buy bitcoin. So you actually have to trade twice, which makes security questionable and frustrating.

In simple terms, atomic swaps enables people to trade directly through their wallets, thus avoiding third party exchanges during the entire process. It may sound not so important but i assure you it kinda helps in everyday acivities.

To give a very simplistic explanation. Two parties who are going to engage in atomic swaps decide on a shared secret. The two parties will share their cryptos if and only if their secrets match. So, this way, if somebody else barges into this exchange, they won’t be able to get their hands on any of the coins because they will not know this secret.

In order for such transaction to take place there is a Hashed Timelock Contracts( known as HTLCs) which are responsible for securing the transactions and keeping the secret safe.

Atomic swaps require both parties to acknowledge receipt of funds within a specified timeframe using a cryptographic hash function. If one of the involved parties fails to confirm the transaction within the timeframe, then the entire transaction is voided, and funds are not exchanged. The latter action helps remove counterparty risk.

So there are multiple advantages of atomic swaps and i will highlight only the most important ones.

First of all it removes third party interferance which is quite important due to a hight risk a exchange getting hacked. It may sound to radical but once you start exchanging a lot of money, security becomes your primary concerne.

Direct wallet-to-wallet trading epitomizes decentralization in its purest form. Exchanges are constantly targeted for regulation purposes which makes the whole trading process increasingly centralized.

LIMITATIONS

As always, there are pros and cons to every new technology, especially those who are considered to be in its early stage.

Both blockchains are expected to have a hash algorithm which is inherenet and common to both of them, otherwise it they won't be able to communicate properly. Moreover, both blockchains has to posses an ability of executing HTL.

To be honest i don't know if steem has those abilities and what happens in case it doesn't. I assume it requiers hard fork, but i might be wrong about it.

The solution seems pretty straight forward and is the best way to increase interest between seemingly different communities. After all we share common goals, that is to increase the activity and liquidity of our digital asset, that will eventually have an impact on price itself.

Stay connected.

Sort:  
 5 years ago  

Appreciated @ocupation.

The technical aspects you have raised escape my knowledge. Then I would feel insecure about commenting on it.

But, the fact that it is possible to achieve positive interaction that allows to exchange steem / tron, for example, would improve the user experience in this new stage that is beginning.

I really liked your approaches. Excellent post.
Thanks for sharing.

Your friend, Juan.

well man Im sorry to tell you this, but i dont quite think steem will be the same after hostile takeover. There will be no atomic swaps and there will be no coolaboration between our community and centralized entities such as tron fundition. Im hoping they will simply dump the coin and let us start from the beggining.

 5 years ago  

I keep less apocalyptic expectations.

Its impossible to continue on with the same narrative after such actions. This was obvious attempt on centralizing the platform. As long as there are tron around im firmly quitting my activities and will not take part of it. It seems unlikely for us to coexist. Hope they'll dump coins once hardfork goes live.

 5 years ago  

I respect your position, but I don't share it.

Thats perfectly fine. Looking forward to a split, steem classic sounds by far better than compromised steem.
I guess we will se in a few hours

 5 years ago  

HF in sight.

I think I like the idea of 'atomic swap' especially because it totally eliminates the presence of a third party.

 5 years ago  

@tipu curate

My question is how is the exchange rate determined? In a centralized exchange, the supply and demand influences the rate (though it might be manipulated in some cases). How are the rates set in a DEX or HTL?

Good question, i have tried finding an awnser and the only thing i came across was "program collects real time data through multiple exchanges and calculates medium price during that time."
However im not sure if this is correct answer.

 5 years ago  Reveal Comment