Closed Moustikitos closed 5 years ago
Thanks for opening this issue! A maintainer will review this in the next few days and explicitly select labels so you know what's going on.
If no reviewer appears after a week, a reminder will be sent out.
@Moustikitos thanks for this. We are also working quite heavy on the HTLC part, in a similar way as outlined by your proposal.
This is something that will help us, when joining efforts. We will share more when we believe the specs are matured - so we can review and improve them together.
Ok nice.
I think, the hardest part with HTLC between ARK and Lightning Network will be the end user interface with desktop wallet.
Getting the right info from Ligtning Network using SCRIPT is matter of coding. Putting it simply for end user will be quite a huge task but possible with Desktop Wallet "plugability".
Maybe on ark-core side, ARK LOGIC would be most appropriate in Lightning Network interactions.
https://github.com/ArkEcosystem/AIPs/blob/master/AIPS/aip-102.md #102 Sharing updated docs from our side here. Thanks for your help with initial proposal.
and yes the biggest part will be user interface, but this is scope of other tools and new AIPs.
thanks @Moustikitos
This issue has been closed. If you wish to re-open it please provide additional information.
Because it allows peer to peer exchanges (or decentralized exchanges), atomic swap is one of the biggest feature every blockchain try to reach. For now, HTLC achievement on Bitcoin Network is the most promising procedure in that way.
See on mermaidjs.github.io an adaptation of HTLC atomic swap based on a freezer/defreezer transaction pair.
The transaction structure proposed
Freezer transaction
Defreezer transaction
Different methods could be described in asset
Pseudo-code implementation
At transaction pool level, freezer tx are to be validated if wallet balance allows it. A defreezer tx is valid if described asset matches with the element sent before and if timelock did not expire.
On relay side, all transactions are considered as valid. So balance computation could be done simply.
I think if this kind of atomic swap can be done between ark-forks, the path to do it directly with Bitcoin will be not so far...
Any comments and ideas are welcome, it is a first draw proposal about atomic swap and may be subject to improvements.