Data Lightning Atomic Swap (DLAS-down, DLAS-up) [combined summary]



Individual post summaries: Click here to read the original discussion on the lightning-dev mailing list

Published on: 2020-01-21T07:55:43+00:00


Summary:

DLAS (Data Lightning Atomic Swap) is a mechanism that enables atomic data transfer using Lightning payments. It ensures that the data is transferred simultaneously with the payment by employing preimage embedment. The protocol has a restriction on the data size, allowing up to 256 bits. However, larger data can be transferred by splitting it into blocks and using multiple payment paths. To ensure the correctness of the shared file, a Zero Knowledge proof process like TumbleBit can be utilized. There is no need to verify the message itself as per the article.When downloading data (DLAS-down), there are no issues. But when uploading data (DLAS-up), OG AMP (Onion Routing Atomic Multi-Path) implementation is required to expand the data size. It is also recommended to generate a new channel pubkey every time using a hash chain to mitigate decryption risks. An example protocol is provided in the article for transferring 512 bits of data using two paths, where the XOR function is used for calculating the data share.The article suggests several use cases for DLAS, including hosting incentives, distributed secret key sharing, prevention of email spam and DDoS attacks, incentive for receiving advertisements, and bounty programs for code bug fixes based on cryptographic proofs or secret computations. References to further reading materials are provided for more information on DLAS and related topics.DLAS-down has a limitation on data size (256 bits), but DLAS-up can transfer larger data through multiple payment paths. It has potential uses in hosting incentives, distributed secret key sharing, prevention of email spam, and DDoS attacks. OG AMP is used for security purposes, revoking payments and data transfers in case of failure. ZmnSCPxj suggests using a version with no restrictions for download cases and provides a link to the recommended version. For upload cases, OG AMP or payment points + scalars and payment decorrelation are recommended. The summed blinding factor can be used as an encryption key to send data to the payee, as suggested by ZmnSCPxj in an email conversation.The Lightning Network, built on top of Bitcoin, enables faster and cheaper transactions through payment channels. Atomic swaps allow for the exchange of different cryptocurrencies without the need for a centralized exchange. This introduces new possibilities for cross-chain atomic swaps, improving efficiency and usability. The Lightning Labs CEO, Roasbeef, shared a link to a 2016 paper on atomic swaps and a Github repository containing a draft specification for atomic swaps on the Lightning Network. Concerns were raised by the Lightning developer community regarding security vulnerabilities and implementation issues. Takaya Imai addressed these concerns and proposed changes to the spec in a document published on Github.In conclusion, DLAS shows promise as a protocol for secure data and lightning payment exchange. However, there are limitations that need to be addressed. The document includes references to related work and provides a link to the DLAS document on GitHub.


Updated on: 2023-07-31T22:21:29.464805+00:00