<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <updated></updated>
  <generator>https://nostr.ae</generator>

  <title>Nostr notes by </title>
  <author>
    <name></name>
  </author>
  <link rel="self" type="application/atom+xml" href="https://nostr.ae/npub1snw7t4auupm70ntyeywuzqn80cf6es53ym8rlzymh8ft97qmyq9qrg9vl0.rss" />
  <link href="https://nostr.ae/npub1snw7t4auupm70ntyeywuzqn80cf6es53ym8rlzymh8ft97qmyq9qrg9vl0" />
  <id>https://nostr.ae/npub1snw7t4auupm70ntyeywuzqn80cf6es53ym8rlzymh8ft97qmyq9qrg9vl0</id>
  <icon></icon>
  <logo></logo>




  <entry>
    <id>https://nostr.ae/nevent1qqsdf9ks395mxkf8tmgurvrfamuy0gkpkycn8f5dg8w8j3dgah04f7czyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5ulpfgr</id>
    
      <title type="html">📅 Original date posted:2020-05-20 📝 Original message: Hi, ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsdf9ks395mxkf8tmgurvrfamuy0gkpkycn8f5dg8w8j3dgah04f7czyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5ulpfgr" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsdm8xsynyekwv9gphfmdd6le6jhqcqex7yvk936t54zwh4mhye2lsffz8dp&#39;&gt;nevent1q…z8dp&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-05-20&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi,&lt;br/&gt;&lt;br/&gt;     We went through the discussion of Griefing Attack&lt;br/&gt;&amp;lt;&lt;a href=&#34;https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-April/002608.html&amp;gt&#34;&gt;https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-April/002608.html&amp;gt&lt;/a&gt;;&lt;br/&gt;and after a thorough analysis, we realized that the attack cannot be&lt;br/&gt;prevented as the adversary doesn’t suffer any loss of funds.&lt;br/&gt;&lt;br/&gt;We propose an efficient countermeasure for the attack, known as&lt;br/&gt;Griefing-Penalty. Our proposed strategy works for any timelock based&lt;br/&gt;payment protocol. The penalty compensates for the loss incurred by the&lt;br/&gt;intermediaries, affected by griefing attack. You will find the paper&lt;br/&gt;Griefing-Penalty:&lt;br/&gt;Countermeasure for Griefing Attack in Bitcoin-compatible PCNs&lt;br/&gt;&amp;lt;&lt;a href=&#34;https://arxiv.org/abs/2005.09327&amp;gt&#34;&gt;https://arxiv.org/abs/2005.09327&amp;gt&lt;/a&gt;; on arXiv. We look forward to hearing&lt;br/&gt;from the community on the feasibility of the approach and whether it can be&lt;br/&gt;implemented or not.&lt;br/&gt;&lt;br/&gt;Our Contribution to the paper:&lt;br/&gt;&lt;br/&gt;• We propose a countermeasure for mitigating griefing attack in&lt;br/&gt;Bitcoin-compatible PCNs, known as Griefing-Penalty. It punishes the griefer&lt;br/&gt;by forcing it to pay compensation to all the parties whose funds got locked&lt;br/&gt;for a certain time period as a result of the attack.&lt;br/&gt;&lt;br/&gt;• The loss of funds incurred upon mounting griefing-attack is proportional&lt;br/&gt;to the collateral cost of each channel involved in routing the payment.&lt;br/&gt;&lt;br/&gt;• To illustrate the benefit of the proposed countermeasure, we propose a&lt;br/&gt;new payment protocol, called as HTLC-GP or Hashed Timelock Contract with&lt;br/&gt;Griefing-Penalty.&lt;br/&gt;&lt;br/&gt;• We provide a security analysis which proves that our protocol is&lt;br/&gt;privacy-preserving as well as mitigates loss due to griefing attack by&lt;br/&gt;compensating the honest nodes&lt;br/&gt;&lt;br/&gt;We will briefly summarize the problem and our contribution through an&lt;br/&gt;example.&lt;br/&gt;&lt;br/&gt;The problem of Griefing Attack explained briefly&lt;br/&gt;&lt;br/&gt;Consider the situation where A wants to transfer 1 msat to C. It figures&lt;br/&gt;out a path connecting it to C, in the form A-&amp;gt;B-&amp;gt;C. A establishes an HTLC&lt;br/&gt;with B, locking 1 msat in the contract having expiration time of say 2&lt;br/&gt;days. B after receiving the incoming contract, forms a contract with C,&lt;br/&gt;locking 1 msat in the contract with locktime of 1 day.&lt;br/&gt;&lt;br/&gt;A-------------------------&amp;gt;B----------------------&amp;gt;C&lt;br/&gt;&lt;br/&gt;HTLC(1msat, 2 day)     HTLC(1msat, 1 day)&lt;br/&gt;&lt;br/&gt;Now if C griefs, funds of A and B remain locked as they cannot resolve&lt;br/&gt;HTLC. After an elapsed time of 1 day, the fund gets unlocked and B gets&lt;br/&gt;back 1 msat. Similarly, B cancels contract with A after 1 day, A unlocks 1&lt;br/&gt;msat. The problem with this construction is that C doesn’t lose anything.&lt;br/&gt;&lt;br/&gt;Griefing-Penalty: a strategy to penalize the adversary&lt;br/&gt;&lt;br/&gt;Hence we have come up with the following idea:&lt;br/&gt;&lt;br/&gt;1) An off-chain contract established between 2 parties requires both the&lt;br/&gt;parties to lock funds – one party locking the amount that is to be&lt;br/&gt;forwarded and the other party locking the fund which can be claimed as a&lt;br/&gt;penalty, if this party griefs.&lt;br/&gt;&lt;br/&gt;2) The penalty locked is proportional to the product of the amount being&lt;br/&gt;forwarded and the expiration time of the contract. All the parties affected&lt;br/&gt;by griefing must get compensation since their liquidity is tied up for a&lt;br/&gt;certain period of time.&lt;br/&gt;&lt;br/&gt;Considering the example used for demonstrating griefing attack. We modify&lt;br/&gt;the contract and term it as HTLC-GP (Hashed Timelock Contract with Griefing&lt;br/&gt;Penalty). We assume a rate of penalty, say 0.01 per hour, for calculating&lt;br/&gt;the penalty the party has to lock in order to accept an off-chain contract&lt;br/&gt;request.&lt;br/&gt;&lt;br/&gt;A forwards the term of the contract to B, requesting B to lock&lt;br/&gt;0.01*1*48=0.48 msat as a penalty. A locks 1 msat in the contract, so the&lt;br/&gt;total amount locked in the contract is 1.48 msat. In the same way, B&lt;br/&gt;forwards the term of the contract to C, requesting C to lock 0.01*1*24=0.24&lt;br/&gt;msat as a penalty. B locks 1 msat in the contract, so the total amount&lt;br/&gt;locked in the contract is 1.24 msat. If the payment is not resolved within&lt;br/&gt;1 day, all the parties who have forwarded the contract will claim the&lt;br/&gt;penalty locked in the contract.&lt;br/&gt;&lt;br/&gt;A--------------------------------------&amp;gt;B--------------------------------&amp;gt;C&lt;br/&gt;&lt;br/&gt;HTLC-GP(1.48 msat, 2 days)       HTLC-GP(1.24 msat,1 day)&lt;br/&gt;&lt;br/&gt;If C releases the preimage before the expiration of locktime, it will claim&lt;br/&gt;the full amount locked in the contract, i.e. 1.24 msat. Similarly, B claims&lt;br/&gt;1.48 msat from the contract established with A.&lt;br/&gt;&lt;br/&gt;Suppose C griefs. After an elapse of 1 day, B claims 1.24 msat from the&lt;br/&gt;contract. C loses 0.24 msat. When B cancels contract with A, it will settle&lt;br/&gt;by paying 1.48 msat to A. But then B loses an additional 0.24 msat. This is&lt;br/&gt;not desired as B was not involved in mounting the attack. As per the&lt;br/&gt;objective, even B should earn a remuneration as it got affected by griefing.&lt;br/&gt;&lt;br/&gt;Hence, B should have asked C to lock funds in the contract which can be&lt;br/&gt;used for compensating both B and A. So C must lock 0.48 msat &#43; 0.24 msat =&lt;br/&gt;0.72 msat. So if C griefs, now it loses 0.72 msat (proportional to the&lt;br/&gt;collateral cost of the path). B pays 0.48 msat to A, keeping 0.24 msat with&lt;br/&gt;itself as compensation.&lt;br/&gt;&lt;br/&gt;A--------------------------------------&amp;gt;B--------------------------------&amp;gt;C&lt;br/&gt;&lt;br/&gt;HTLC-GP(1.48 msat, 2 days)       HTLC-GP(1.72 msat,1 day)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;A-------------------------------------&amp;gt;B--------------------------------&amp;gt;C&lt;br/&gt;(griefs)&lt;br/&gt;&lt;br/&gt;(A gain 0.48 msat)      (B gain 0.24 msat)              (C loses 0.72 msat)&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;-- &lt;br/&gt;Yours sincerely,&lt;br/&gt;Subhra Mazumdar.&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200520/c67d82af/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200520/c67d82af/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T15:00:17&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsp9jl2nnkzpzu2dfr5d7pk7agz7fsge3506gh2xafz0mfaycs3qpczyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5jww4g0</id>
    
      <title type="html">📅 Original date posted:2020-04-01 📝 Original message: ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsp9jl2nnkzpzu2dfr5d7pk7agz7fsge3506gh2xafz0mfaycs3qpczyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5jww4g0" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsgfdfaszecpnlezm5wz3jkphapdf4l0gshfxte5z35jye0qm7wfzss6s0kv&#39;&gt;nevent1q…s0kv&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-04-01&lt;br/&gt;📝 Original message:&lt;br/&gt;Commenting on it : &amp;#34;As for ZmnSCPxj&amp;#39;s suggestion, I think there is the same&lt;br/&gt;kind of issue.&lt;br/&gt;The secrets we establish with anonymous multi-hops locks are between the&lt;br/&gt;*sender*&lt;br/&gt;and each of the hops. In the route blinding case, what we&amp;#39;re adding are&lt;br/&gt;secrets&lt;br/&gt;between the *recipient* and the hops, and we don&amp;#39;t want the sender to be&lt;br/&gt;able to&lt;br/&gt;influence those.&amp;#34;&lt;br/&gt;Is it a good idea to rely entirely on the sender for sampling the secrets&lt;br/&gt;as well as generating the PTLC? As happens in anonymous multi-hops locks,&lt;br/&gt;for example. Or as it has been discussed later in the thread, both receiver&lt;br/&gt;and sender must be involved in creation of PTLC? What happens if&lt;br/&gt;sender/receiver is/(or both are) corrupted? Can it leak secrets to other&lt;br/&gt;parties?&lt;br/&gt;&lt;br/&gt;On Wed, Mar 11, 2020 at 9:57 PM Bastien TEINTURIER via Lightning-dev &amp;lt;&lt;br/&gt;lightning-dev at lists.linuxfoundation.org&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; Good morning list,&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Thanks Rusty for following up on this, I&amp;#39;m glad it may be useful for&lt;br/&gt;&amp;gt; offers!&lt;br/&gt;&amp;gt; I certainly want this as well for wallet users&amp;#39; privacy.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; I have gathered my proposal in a better format than my previous gist here:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://github.com/lightningnetwork/lightning-rfc/blob/route-blinding/proposals/route-blinding.md&#34;&gt;https://github.com/lightningnetwork/lightning-rfc/blob/route-blinding/proposals/route-blinding.md&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; You will note that I&amp;#39;ve been able to simplify the scheme a bit compared to&lt;br/&gt;&amp;gt; my&lt;br/&gt;&amp;gt; gist. It&amp;#39;s now very clear that this is exactly the same kind of secrets&lt;br/&gt;&amp;gt; derivation than what Sphinx does. I still have things I want to add to the&lt;br/&gt;&amp;gt; proposal, but at least the crypto part should be ready to review (and I&lt;br/&gt;&amp;gt; think&lt;br/&gt;&amp;gt; it does need more eyes on it).&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Feel free to add comments directly on the branch commits, it may be easier&lt;br/&gt;&amp;gt; to&lt;br/&gt;&amp;gt; review that way. Let me know if you think I should turn it into a draft PR&lt;br/&gt;&amp;gt; to&lt;br/&gt;&amp;gt; facilitate discussions. It kept it vague on some specific parts on purpose&lt;br/&gt;&amp;gt; (such as invoice fields, encrypted blob format); we will learn from early&lt;br/&gt;&amp;gt; prototype implementations and enrich the proposal as we go.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; A few comments on your previous mails. I have removed the (ab)use of&lt;br/&gt;&amp;gt; `payment_secret`, but I think your comment on using the `blinding` to&lt;br/&gt;&amp;gt; replace&lt;br/&gt;&amp;gt; it would not work because that blinding is known by the next-to-last node&lt;br/&gt;&amp;gt; (which computes it and forwards it to the final node).&lt;br/&gt;&amp;gt; The goal of `payment_secret` is explicitly to avoid having the&lt;br/&gt;&amp;gt; next-to-last node&lt;br/&gt;&amp;gt; discover it to prevent him from probing. But I think that you didn&amp;#39;t plan&lt;br/&gt;&amp;gt; on&lt;br/&gt;&amp;gt; doing the blinding the same way I&amp;#39;m doing it, which may explain the&lt;br/&gt;&amp;gt; difference.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; As for ZmnSCPxj&amp;#39;s suggestion, I think there is the same kind of issue.&lt;br/&gt;&amp;gt; The secrets we establish with anonymous multi-hops locks are between the&lt;br/&gt;&amp;gt; *sender*&lt;br/&gt;&amp;gt; and each of the hops. In the route blinding case, what we&amp;#39;re adding are&lt;br/&gt;&amp;gt; secrets&lt;br/&gt;&amp;gt; between the *recipient* and the hops, and we don&amp;#39;t want the sender to be&lt;br/&gt;&amp;gt; able to&lt;br/&gt;&amp;gt; influence those. It&amp;#39;s a kind of reverse Sphinx. So I&amp;#39;m not sure yet the&lt;br/&gt;&amp;gt; recipient&lt;br/&gt;&amp;gt; could safely contribute to those secrets, but maybe we&amp;#39;ll find a nice&lt;br/&gt;&amp;gt; trick in&lt;br/&gt;&amp;gt; the future!&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Cheers,&lt;br/&gt;&amp;gt; Bastien&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Le mer. 11 mars 2020 à 00:22, Rusty Russell &amp;lt;rusty at rustcorp.com.au&amp;gt; a&lt;br/&gt;&amp;gt; écrit :&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; ZmnSCPxj &amp;lt;ZmnSCPxj at protonmail.com&amp;gt; writes:&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Good morning Rusty, et al.,&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; Note that this means no payment secret is necessary, since the incoming&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; `blinding` serves the same purpose. If we wanted to, we could (ab)use&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; payment_secret as the first 32-bytes to put in Carol&amp;#39;s enc1 (i.e. it&amp;#39;s&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&amp;gt; the ECDH for Carol to decrypt enc1).&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; I confess to not reading everything in detail, but it seems to me that,&lt;br/&gt;&amp;gt;&amp;gt; with payment point &#43; scalar and path decorrelation, we need to establish a&lt;br/&gt;&amp;gt;&amp;gt; secret with each hop anyway (the blinding scalar for path decorrelation),&lt;br/&gt;&amp;gt;&amp;gt; so if you need a secret per hop, possibly this could be reused as well?&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Indeed, this could be used the same way, though for that secret it can&lt;br/&gt;&amp;gt;&amp;gt; simply be placed inside the onion rather than passed alongside.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Cheers,&lt;br/&gt;&amp;gt;&amp;gt; Rusty.&lt;br/&gt;&amp;gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt;&amp;gt; Lightning-dev mailing list&lt;br/&gt;&amp;gt;&amp;gt; Lightning-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt; Lightning-dev mailing list&lt;br/&gt;&amp;gt; Lightning-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;-- &lt;br/&gt;Yours sincerely,&lt;br/&gt;Subhra Mazumdar.&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200401/1e7b9725/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200401/1e7b9725/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T14:59:32&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsvhhejdrqt5tmprc0aue5wdhk0h8mu5l7lu9z4p4lugd53u0ltv0szyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq52x7rxa</id>
    
      <title type="html">📅 Original date posted:2020-03-06 📝 Original message: Hi, I ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsvhhejdrqt5tmprc0aue5wdhk0h8mu5l7lu9z4p4lugd53u0ltv0szyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq52x7rxa" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsyr6e85lsw7apttel74kvh09uycucj8q23cwgrrssf2j8dk70s5cq3ghpyx&#39;&gt;nevent1q…hpyx&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-03-06&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi,&lt;br/&gt;      I was reading the paper by Poon and Dryja on Bitcoin Lightning&lt;br/&gt;Network and was going through the construction of HTLC. Suppose 2 parties A&lt;br/&gt;and B have a channel with each party locking 0.5 BTC. Suppose A wants to&lt;br/&gt;transfer 0.1 BTC to B contingent to the knowledge of R : H=h(R) produced&lt;br/&gt;within a locktime of say t days. So the script output for A is -&lt;br/&gt;1. 0.4 BTC to A&lt;br/&gt;2. 0.5 BTC to B&lt;br/&gt;3. 0.1 BTC locked in HTLC between A &amp;amp; B.&lt;br/&gt;Why we cannot set the terms as say 0.4 BTC to A, 0.2 BTC to B and 0.4 BTC&lt;br/&gt;to HTLC, where HTLC output can follow either of the paths - If B produces R&lt;br/&gt;within t days then it gets back 0.4 BTC else after t days A can broadcast&lt;br/&gt;with 0.4 BTC going to the A? This prevents B from not responding (and&lt;br/&gt;induce possibly griefing attack across a longer path by withholding the&lt;br/&gt;solution) since it will lose out 0.3 BTC. What can be the problem if the&lt;br/&gt;terms of HTLC itself tries to enforce a penalty on the counterparty?&lt;br/&gt;&lt;br/&gt;-- &lt;br/&gt;Yours sincerely,&lt;br/&gt;Subhra Mazumdar.&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200306/6350cd37/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200306/6350cd37/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T14:59:11&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs98m96ejk5chzy0pa7yr6e55mhnzeyvpejvh7555mqwf8eygqcfaszyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq58wuv6l</id>
    
      <title type="html">📅 Original date posted:2020-01-27 📝 Original message: Hi ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs98m96ejk5chzy0pa7yr6e55mhnzeyvpejvh7555mqwf8eygqcfaszyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq58wuv6l" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsrnffvjl6g79zpr8yjfte6a73fyn47l8374kl2tq53e0j6h20jyuskktzn3&#39;&gt;nevent1q…tzn3&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-01-27&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi ZmnSCPxj,&lt;br/&gt;      It is stated in the paper &amp;#34;Atomic multi-channel updates with constant&lt;br/&gt;collateral in bitcoin-compatible payment-channel networks&amp;#34; and I am quoting&lt;br/&gt;verbatim (page 11) (last email still waiting moderator approval) &amp;#34;Phase I:&lt;br/&gt;Setup. The first phase requires to freeze the coins available at each&lt;br/&gt;channel involved in the protocol. Doing this naively (i.e., locking the&lt;br/&gt;complete balance in the channel at once) would lock more coins than&lt;br/&gt;required, unnecessarily increasing the collateral in the protocol. Instead,&lt;br/&gt;during the setup phase, the balance at each payment channel is split in&lt;br/&gt;two, effectively creating thereby two sub-channels: one sub-channel is set&lt;br/&gt;with the coins required for the present protocol session, while the other&lt;br/&gt;one is set with the&lt;br/&gt;remaining coins, which can then be freely spent. In the illustrative&lt;br/&gt;example shown in Figure 4.2, the setup phase starts with the user A&lt;br/&gt;collaborating with user B to create the transaction Tx A&lt;br/&gt;setup , where they split the 10 coins they have in the channel in two&lt;br/&gt;sub-channels: one sub-channel with 8 coins to be used in the rest of the&lt;br/&gt;protocol session and one sub-channel with the rest (i.e., 2 coins). This&lt;br/&gt;transaction is signed by both users so that it can be eventually enforced&lt;br/&gt;on-chain if required. The rest of the users behave analogously. Note that&lt;br/&gt;operations at each channel in this phase of the protocol can be carried out&lt;br/&gt;in parallel.&amp;#34; Does this sound good ?&lt;br/&gt;&lt;br/&gt;On Mon, Jan 27, 2020 at 9:41 AM Subhra Mazumdar &amp;lt;&lt;br/&gt;subhra.mazumdar1993 at gmail.com&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; Hi ZmnSCPxj,&lt;br/&gt;&amp;gt;        It is stated in the paper &amp;#34;Atomic multi-channel updates with&lt;br/&gt;&amp;gt; constant collateral in bitcoin-compatible payment-channel networks&amp;#34;. I am&lt;br/&gt;&amp;gt; attaching the screenshot of the paragraph which mentions about locking the&lt;br/&gt;&amp;gt; amount which is required for payment transfer and not the entire channel&lt;br/&gt;&amp;gt; fund.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; On Mon, Jan 27, 2020 at 6:15 AM ZmnSCPxj &amp;lt;ZmnSCPxj at protonmail.com&amp;gt; wrote:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Good morning Subhra,&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; This does not seem to make sense?&lt;br/&gt;&amp;gt;&amp;gt; For a payment that is less than the channel funds on your side, only that&lt;br/&gt;&amp;gt;&amp;gt; amount is locked behind an HTLC, and the rest remains useable for other&lt;br/&gt;&amp;gt;&amp;gt; HTLCs.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; What exactly are you referring to?&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Regards,&lt;br/&gt;&amp;gt;&amp;gt; ZmnSCPxj&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Hi,&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt;      I was wondering when parties apply condition on fraction of&lt;br/&gt;&amp;gt;&amp;gt; channel fund for ensuring successful payment, entire channel fund is held.&lt;br/&gt;&amp;gt;&amp;gt; Is it possible to lock just partial amount of fund of a payment channel and&lt;br/&gt;&amp;gt;&amp;gt; leave the rest to be used by some another payment request ? Concept of&lt;br/&gt;&amp;gt;&amp;gt; subchannels of a single channel has been suggested in &amp;#34;Atomic multi-channel&lt;br/&gt;&amp;gt;&amp;gt; updates with constant collateral in bitcoin-compatible payment-channel&lt;br/&gt;&amp;gt;&amp;gt; networks&amp;#34;&lt;br/&gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://scholar.google.com/scholar?cluster=40566801298747858&amp;amp;hl=en&amp;amp;as_sdt=2005&amp;amp;sciodt=0,5&#34;&gt;https://scholar.google.com/scholar?cluster=40566801298747858&amp;amp;hl=en&amp;amp;as_sdt=2005&amp;amp;sciodt=0,5&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt; but I am still in doubt what happens during closing of subchannel ?&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; --&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Yours sincerely,&lt;br/&gt;&amp;gt;&amp;gt; &amp;gt; Subhra Mazumdar.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; --&lt;br/&gt;&amp;gt; Yours sincerely,&lt;br/&gt;&amp;gt; Subhra Mazumdar.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;&lt;br/&gt;-- &lt;br/&gt;Yours sincerely,&lt;br/&gt;Subhra Mazumdar.&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200127/b8248846/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200127/b8248846/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T14:58:12&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsqpv0s0nllvwfzt8adn6hph4djkjs3zdpr4yza9p2vcgfcye8kdqgzyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5sct3pt</id>
    
      <title type="html">📅 Original date posted:2020-01-25 📝 Original message: Hi, I ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsqpv0s0nllvwfzt8adn6hph4djkjs3zdpr4yza9p2vcgfcye8kdqgzyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5sct3pt" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqspssz7scusgtvxhcshj4y8y8ggfvcmacg3nckytjatszmhnxk5xwstcw4t9&#39;&gt;nevent1q…w4t9&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-01-25&lt;br/&gt;📝 Original message:&lt;br/&gt;Hi,&lt;br/&gt;     I was wondering when parties apply condition on fraction of channel&lt;br/&gt;fund for ensuring successful payment, entire channel fund is held. Is it&lt;br/&gt;possible to lock just partial amount of fund of a payment channel and leave&lt;br/&gt;the rest to be used by some another payment request ? Concept of&lt;br/&gt;subchannels of a single channel has been suggested in &amp;#34;Atomic multi-channel&lt;br/&gt;updates with constant collateral in bitcoin-compatible payment-channel&lt;br/&gt;networks&amp;#34;&lt;br/&gt;&lt;a href=&#34;https://scholar.google.com/scholar?cluster=40566801298747858&amp;amp;hl=en&amp;amp;as_sdt=2005&amp;amp;sciodt=0,5&#34;&gt;https://scholar.google.com/scholar?cluster=40566801298747858&amp;amp;hl=en&amp;amp;as_sdt=2005&amp;amp;sciodt=0,5&lt;/a&gt;&lt;br/&gt;but I am still in doubt what happens during closing of subchannel ?&lt;br/&gt;&lt;br/&gt;-- &lt;br/&gt;Yours sincerely,&lt;br/&gt;Subhra Mazumdar.&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200125/7db6f203/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200125/7db6f203/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T14:58:12&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqs8l396ykrydmjzn2g2d7wuaeuw7raahh8c9kavzzakkztcgrm6ctszyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5d64sv4</id>
    
      <title type="html">📅 Original date posted:2020-01-20 📝 Original message: Are ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqs8l396ykrydmjzn2g2d7wuaeuw7raahh8c9kavzzakkztcgrm6ctszyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5d64sv4" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqsfarymn632fwlhtwz6us2fwwg2dkatwjm58gsv9dmzy5gj5ev3qjsn0tze0&#39;&gt;nevent1q…tze0&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-01-20&lt;br/&gt;📝 Original message:&lt;br/&gt;Are you referring to the paper Zero knowledge contingent payment revisited&lt;br/&gt;? I will look into the construction. Thanks for the information! :)&lt;br/&gt;&lt;br/&gt;On Mon, Jan 20, 2020, 23:31 Matt Corallo &amp;lt;lf-lists at mattcorallo.com&amp;gt; wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; On 11/9/19 4:31 AM, Takaya Imai wrote:&lt;br/&gt;&amp;gt; &amp;gt; [What I do not describe]&lt;br/&gt;&amp;gt; &amp;gt; * A way to detect that data is correct or not, namely zero knowledge&lt;br/&gt;&amp;gt; &amp;gt; proof process.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Have you come across Zero Knowledge Contingent Payments? Originally it&lt;br/&gt;&amp;gt; was designed for on-chain applications but it slots neatly into&lt;br/&gt;&amp;gt; lightning as it only requires a method to lock funds to a hash preimage.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Matt&lt;br/&gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt; Lightning-dev mailing list&lt;br/&gt;&amp;gt; Lightning-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200120/3823fa3d/attachment.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200120/3823fa3d/attachment.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T14:58:06&#43;02:00</updated>
  </entry>

  <entry>
    <id>https://nostr.ae/nevent1qqsxnh6ydqm6h6r6zgdquqxvzuhnzm60ejr2pxkn5gh5ahg98jzvtuczyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5elc7he</id>
    
      <title type="html">📅 Original date posted:2020-01-20 📝 Original message: ...</title>
    
    <link rel="alternate" href="https://nostr.ae/nevent1qqsxnh6ydqm6h6r6zgdquqxvzuhnzm60ejr2pxkn5gh5ahg98jzvtuczyzzdmewhhns80e7dvny3msgzvalp8txzjynvu0ugnwua9vhcrvsq5elc7he" />
    <content type="html">
      In reply to &lt;a href=&#39;/nevent1qqswcc6yrrdas3fse2k28j8trnt5yvwt2r40wnqv04z2jcwdk8k2e7sm06z6s&#39;&gt;nevent1q…6z6s&lt;/a&gt;&lt;br/&gt;_________________________&lt;br/&gt;&lt;br/&gt;📅 Original date posted:2020-01-20&lt;br/&gt;📝 Original message:&lt;br/&gt;Thanks Takaya for clearing my doubts. Regarding the answer to the question&lt;br/&gt;&lt;br/&gt; &amp;#34;What happens if it fails in an iteration ? So the recipient of the file&lt;br/&gt;remains happy with the partial content ? Or will the payment be revoked&lt;br/&gt;(not sure how) if recipient doesn&amp;#39;t get the full content ?&lt;br/&gt;&lt;br/&gt;This is about the DLAS-up protocol.&lt;br/&gt;The protocol uses OG AMP so the payments and data transfers are revoked in&lt;br/&gt;case that it fails&amp;#34;&lt;br/&gt;&lt;br/&gt;I am talking about different iterations. If it&amp;#39;s the case that you have a&lt;br/&gt;5GB file then you are sending 256bit via each path. May be in one iteration&lt;br/&gt;you are able to send some 200 byte (assuming we get 8 paths at a time). So&lt;br/&gt;it&amp;#39;s the case that you need 5GB/200B iterations. But og amp guarantees&lt;br/&gt;atomic delivery for blocks per iteration right and not for all the&lt;br/&gt;iterations taken together ? Also how do you ensure correctness of the file&lt;br/&gt;shared (using Zk proof ?) ?&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;On Mon, Jan 20, 2020, 12:03 Takaya Imai &amp;lt;takaya.imai at frontier-ptnrs.com&amp;gt;&lt;br/&gt;wrote:&lt;br/&gt;&lt;br/&gt;&amp;gt; Hi Subhra,&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; thanks for your question.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; So as of now if we consider transfer of a file (may of few KB) then you&lt;br/&gt;&amp;gt; split it into several blocks and use atomic multi path payment whole using&lt;br/&gt;&amp;gt; the blocks for embedding with the preimage inorder to obtain payment.&lt;br/&gt;&amp;gt; &amp;gt; But it might be the case you may not have sufficient number of path to&lt;br/&gt;&amp;gt; transfer all the blocks at one go because of preimage size limitation of&lt;br/&gt;&amp;gt; 256 bit (I didn&amp;#39;t get the point that there is no limitation on data size,&lt;br/&gt;&amp;gt; can anyone explain that ?).&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Yes. It needs many blocks and paths if large file.&lt;br/&gt;&amp;gt; But it has no problem because it can use the same path several times.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Of course it needs much money to transfer large file. But this is good&lt;br/&gt;&amp;gt; point in order to retain lightning network stable.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; For DOS attack, OG AMP has the same problem. It might that recipient needs&lt;br/&gt;&amp;gt; a limit how many split blocks the recipient accept&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; &amp;gt; So may be you need several iteration and I presume thats what lightning&lt;br/&gt;&amp;gt; network will pitch in where we have several such microtransactions going on.&lt;br/&gt;&amp;gt; &amp;gt;.&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; Thanks,&lt;br/&gt;&amp;gt; Takaya Imai&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt; 2020年1月16日(木) 16:14 Subhra Mazumdar &amp;lt;subhra.mazumdar1993 at gmail.com&amp;gt;:&lt;br/&gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; Hello Takaya,&lt;br/&gt;&amp;gt;&amp;gt;         I really liked the idea of data atomic swap mentioned over here.&lt;br/&gt;&amp;gt;&amp;gt; So as of now if we consider transfer of a file (may of few KB) then you&lt;br/&gt;&amp;gt;&amp;gt; split it into several blocks and use atomic multi path payment whole using&lt;br/&gt;&amp;gt;&amp;gt; the blocks for embedding with the preimage inorder to obtain payment. But&lt;br/&gt;&amp;gt;&amp;gt; it might be the case you may not have sufficient number of path to transfer&lt;br/&gt;&amp;gt;&amp;gt; all the blocks at one go because of preimage size limitation of 256 bit (I&lt;br/&gt;&amp;gt;&amp;gt; didn&amp;#39;t get the point that there is no limitation on data size, can anyone&lt;br/&gt;&amp;gt;&amp;gt; explain that ?). So may be you need several iteration and I presume thats&lt;br/&gt;&amp;gt;&amp;gt; what lightning network will pitch in where we have several such&lt;br/&gt;&amp;gt;&amp;gt; microtransactions going on. What happens if it fails in an iteration ? So&lt;br/&gt;&amp;gt;&amp;gt; the recipient of the file remains happy with the partial content ? Or will&lt;br/&gt;&amp;gt;&amp;gt; the payment be revoked (not sure how) if recipient doesn&amp;#39;t get the full&lt;br/&gt;&amp;gt;&amp;gt; content ?&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; On Mon, Nov 11, 2019 at 6:29 AM Takaya Imai &amp;lt;&lt;br/&gt;&amp;gt;&amp;gt; takaya.imai at frontier-ptnrs.com&amp;gt; wrote:&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Hi all,&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; I propose Data Lightning Atomic Swap.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Anyone already have the same idea?&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [Abstract]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; This proposal is a way to swap data and lightning payment atomically.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; It has two patterns, one is for a payer to swap data-download with&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; lightning payment to a payee (DLAS-down), the other is for a payer to swap&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; data-upload with lightning payment to a payee (DLAS-up).&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; The data is embedded to preimage so sending and receiving the data need&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; lightning payment at the same time.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ---------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [Motivation]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Atomic Swaps among crypto currencies has various ways to implement&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; (on-chain to on-chain[1], on-chain to of-chain(Submarine Swap[2])). And&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Atomic Swaps between data and crypto currencies are also proposed as a part&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; of TumbleBit mechanism[3], Storm mechanism[4] and so on.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Recently Joost Jager proposed Instant messages with lightning onion&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; routing, whatsat[5], which use recent sphinx payload change[6]. This is&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; very awesome but not atomic with lightning payment.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Atomic lightning mechanism for data is useful in use cases below.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ---------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [Pros &amp;amp; Cons]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * DLAS-down&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** Pros&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; *** Atomic data download exchange with lightning payment&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** Cons&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; *** It needs better mechanism to expand data size&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * DLAS-up&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** Pros&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; *** Atomic data upload exchange with lightning payment&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** Cons&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; *** OG AMP[7] is needed to implement&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ---------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [What I describe]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * A way to swap data with lightning payment atomically.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ---------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [What I do not describe]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * A way to detect that data is correct or not, namely zero knowledge&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; proof process.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; For example, probabilistic checkable proof like TumbleBit[3] proposed.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Just message as data is no problem because no need to check the message&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; is correct or not.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * A way in case that different preimages are used in a payment route&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; like Multi-hop locks.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ---------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [Specification]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Lightning Network(LN) has a mechanism about preimage like a brief image&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; below.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Payer                             Mediators&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  Payee&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; =================================================================================&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Preimage&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Preimage Hash  &amp;lt;--------------------- invoice ------------------------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  Preimage Hash&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Preimage Hash  ----------------&amp;gt;   Preimage Hash --------------------&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  Preimage Hash&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Preimage       &amp;lt;—-------------—-   Preimage      &amp;lt;--------------------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  Preimage&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; As you know, preimage Payer gets can be a proof of payment because Payer&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; can not get it if the payment is executed correctly.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 1, Data download &amp;lt;-&amp;gt;  lightning (DLAS-down)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Payer sends lightning payment and receives data from Payee atomically.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Payer                             Mediators&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  Payee&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; =================================================================================&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Payer Channel Pubkey &amp;lt;-----------------------------------------------&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Payee Channel Pubkey&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  data(256bit, padded)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  enc_key = (Payee Channel Secret Key * Payer Channel Pubkey).x  (256bit)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; enc_key = (Payer Channel Secret Key * Payee Channel Pubkey).x  (256bit)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  enc_data = data XOR enc_key&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; sha256(enc_data) &amp;lt;--------------------- invoice ----------------------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; sha256(enc_data)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; sha256(enc_data) ----------------&amp;gt; sha256(enc_data) -----------------&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; sha256(enc_data)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; enc_data         &amp;lt;---------------- enc_data &amp;lt;-------------------------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; enc_data&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; data = enc_data XOR enc_key&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * The size of data is restricted to 256 bits. Identically, it should be&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; extended to larger data and the data should be transferred in several&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; payment paths like DLAS-up.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Channel Pubkey is only one for one channel and the data can be&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; decrypted if enc_key is leaked. So enc_key should be generated newly every&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; time by a way like hash chain but the protocol image above is just example&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; for simplicity.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * .x means X axis value of points on Elliptic Curve.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * If data is less than 256 bits, then 0x00 is padded (I am not sure&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; which of big endian and little endian is better).&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 2, Data upload &amp;lt;-&amp;gt;  lightning (DLAS-down)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Payer sends data and lightning payment from Payee atomically.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; This is like OG AMP(Atomic Multi-path Payment)[7] system.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Payer                             Mediators&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  Payee&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; =================================================================================&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; data(512bit, padded)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; share1(256bit)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; share2(256bit)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; base_s = share1 XOR share2&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; data1(256bit) ||  data2(256bit) = data(512bit)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; XOR_d1 = data1 XOR base_s&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; XOR_d2 = data2 XOR base_s&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; PreImg1 = sha256(base_s || data || 1)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; PreImg2 = sha256(base_s || data || 2)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; sha256(PreImg1), XOR_d1, share1 -&amp;gt; sha256(PreImg1), XOR_d1, share1  -&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; sha256(PreImg1), XOR_d1, share1&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; sha256(PreImg2), XOR_d2, share2 -&amp;gt; sha256(PreImg2), XOR_d2, share2  -&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; sha256(PreImg2), XOR_d2, share1&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  base s = share1 XOR share2&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  data = (XOR_d1 XOR base_s) || (XOR_d2 XOR base_s)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  PreImg1 = sha256(base_s || data || 1)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;  PreImg2 = sha256(base_s || data || 2)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; PreImg1    &amp;lt;-------------------    PreImg1    &amp;lt;---------------------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; PreImg1&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; PreImg2    &amp;lt;-------------------    PreImg2    &amp;lt;---------------------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; PreImg2&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * This protocol example has 512 bits data and they are transferred in&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; two paths. However, it can transfer larger data in several payment paths&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; like [5].&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * || means string concatenation.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * If data is less than 512 bits, then 0x00 is padded(I am not sure which&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; of big endian and little endian is better).&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ---------&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [Use Cases]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 1, Lightning Network ecosystem&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Hosting Incentives like Acai Protocol&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** Watchtower Hosting incentive, Backup Hosting incentive&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; *** Commitment tx data sending to Data Host(DLAS-up)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; **** Commitment tx data is embedded in preimage so that Payer can not&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; send the data without remittance&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; *** Channel backup data receiving from Data Host(DLAS-down)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; **** Channel backup data is embedded in preimage so that Payer can not&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; receive the data without remittance&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 2, Crypto currency Problems&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Distributed secret key sharing (just come up with an idea though)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** As a key backup, one of secret key shares is distributed with&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; encryption(DLAS-up) to some nodes, which nodes receive lightning payment as&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; key managing fee. And the nodes send a proof for managing the key as&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; response of bloom filter periodically, and exchange encrypted secret key&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; share with lightning payment to asset holder(DLAS-down).&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** For example 2 out of 3 multi signature key sharing, asset holder puts&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; the first key, the custodial has the second key, and the third key at the&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; lightning distribution nodes. Asset holders usually spend assets using&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; their key and the key on Distributed Nodes.&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; 3, Problems so far&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Prevention email spam and DDoS attack with large data&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** Payer can not send email or data without remittance(DLAS-up)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** Payer can not receive reply-email without remittance(DLAS-down)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Incentive of receiving advertisements on browser or desktop/mobile app&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** Payer can not send advertisements without remittance(DLAS-up)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; * Bounty for code bug fixes based on cryptographic proofs or secret&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; computations&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; ** (DLAS-down)&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [References]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [1] &lt;a href=&#34;https://bitcointalk.org/index.php?topic=321228&#34;&gt;https://bitcointalk.org/index.php?topic=321228&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [2] &lt;a href=&#34;https://twitter.com/roasbeef/status/964608261830750208&#34;&gt;https://twitter.com/roasbeef/status/964608261830750208&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [3] &lt;a href=&#34;https://eprint.iacr.org/2016/575&#34;&gt;https://eprint.iacr.org/2016/575&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [4] &lt;a href=&#34;https://github.com/storm-org/storm-spec&#34;&gt;https://github.com/storm-org/storm-spec&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [5] &lt;a href=&#34;https://twitter.com/joostjgr/status/1190714028626251779&#34;&gt;https://twitter.com/joostjgr/status/1190714028626251779&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [6] &lt;a href=&#34;https://github.com/lightningnetwork/lightning-rfc/pull/619&#34;&gt;https://github.com/lightningnetwork/lightning-rfc/pull/619&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; [7]&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/pipermail/lightning-dev/2018-February/000993.html&#34;&gt;https://lists.linuxfoundation.org/pipermail/lightning-dev/2018-February/000993.html&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; document on github:&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://github.com/takaya-imai/data_lightning_atomic_swap&#34;&gt;https://github.com/takaya-imai/data_lightning_atomic_swap&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Best regards,&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Takaya Imai&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Email: takaya.imai at frontier-ptnrs.com, takaya.imai at unitedbitcoiners.com&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Lightning-dev mailing list&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; Lightning-dev at lists.linuxfoundation.org&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&#34;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&#34;&gt;https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev&lt;/a&gt;&lt;br/&gt;&amp;gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt; --&lt;br/&gt;&amp;gt;&amp;gt; Yours sincerely,&lt;br/&gt;&amp;gt;&amp;gt; Subhra Mazumdar.&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;&amp;gt;&amp;gt;&lt;br/&gt;-------------- next part --------------&lt;br/&gt;An HTML attachment was scrubbed...&lt;br/&gt;URL: &amp;lt;&lt;a href=&#34;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200120/257e2885/attachment-0001.html&amp;gt&#34;&gt;http://lists.linuxfoundation.org/pipermail/lightning-dev/attachments/20200120/257e2885/attachment-0001.html&amp;gt&lt;/a&gt;;
    </content>
    <updated>2023-06-09T14:58:05&#43;02:00</updated>
  </entry>

</feed>