Research/Bitcoin Dev Archive / lightning-dev list
Data Lightning Atomic Swap (DLAS-down, DLAS-up)
18 messages, Nov 9, 2019, to Jan 21, 2020. Started by Takaya Imai.
Subhra Mazumdar (7), Matt Corallo (5), Takaya Imai (3), ZmnSCPxj (2), Andrés G. Aragoneses
Hi all,
I propose Data Lightning Atomic Swap. Anyone already have the same idea?
[Abstract] This proposal is a way to swap data and lightning payment atomically. It has two patterns, one is for a payer to swap data-download with lightning payment to a payee (DLAS-down), the other is for a payer to swap data-upload with lightning payment to a payee (DLAS-up).
The data is embedded to preimage so sending and receiving the data need lightning payment at the same time.
---------
[Motivation] Atomic Swaps among crypto currencies has various ways to implement (on-chain to on-chain[1], on-chain to of-chain(Submarine Swap[2])). And Atomic Swaps between data and crypto currencies are also proposed as a part of TumbleBit mechanism[3], Storm mechanism[4] and so on.
Recently Joost Jager proposed Instant messages with lightning onion routing, whatsat[5], which use recent sphinx payload change[6]. This is very awesome but not atomic with lightning payment.
Atomic lightning mechanism for data is useful in use cases below.
---------
[Pros & Cons]
* DLAS-down ** Pros *** Atomic data download exchange with lightning payment ** Cons *** It needs better mechanism to expand data size
* DLAS-up ** Pros *** Atomic data upload exchange with lightning payment ** Cons *** OG AMP[7] is needed to implement
---------
[What I describe] * A way to swap data with lightning payment atomically.
---------
[What I do not describe] * A way to detect that data is correct or not, namely zero knowledge proof process.
For example, probabilistic checkable proof like TumbleBit[3] proposed. Just message as data is no problem because no need to check the message is correct or not.
* A way in case that different preimages are used in a payment route like Multi-hop locks.
---------
[Specification]
Lightning Network(LN) has a mechanism about preimage like a brief image below.
Payer Mediators Payee =================================================================================
Preimage Preimage Hash <--------------------- invoice ------------------------ Preimage Hash Preimage Hash ----------------> Preimage Hash --------------------> Preimage Hash Preimage <—-------------—- Preimage <-------------------- Preimage
As you know, preimage Payer gets can be a proof of payment because Payer can not get it if the payment is executed correctly.
1, Data download <-> lightning (DLAS-down)
Payer sends lightning payment and receives data from Payee atomically.
Payer Mediators Payee ================================================================================= Payer Channel Pubkey <-----------------------------------------------> Payee Channel Pubkey
data(256bit, padded)
enc_key = (Payee Channel Secret Key * Payer Channel Pubkey).x (256bit) enc_key = (Payer Channel Secret Key * Payee Channel Pubkey).x (256bit)
enc_data = data XOR enc_key sha256(enc_data) <--------------------- invoice ---------------------- sha256(enc_data) sha256(enc_data) ----------------> sha256(enc_data) -----------------> sha256(enc_data) enc_data <---------------- enc_data <------------------------- enc_data data = enc_data XOR enc_key
* The size of data is restricted to 256 bits. Identically, it should be extended to larger data and the data should be transferred in several payment paths like DLAS-up. * Channel Pubkey is only one for one channel and the data can be decrypted if enc_key is leaked. So enc_key should be generated newly every time by a way like hash chain but the protocol image above is just example for simplicity. * .x means X axis value of points on Elliptic Curve. * If data is less than 256 bits, then 0x00 is padded (I am not sure which of big endian and little endian is better).
2, Data upload <-> lightning (DLAS-down)
Payer sends data and lightning payment from Payee atomically. This is like OG AMP(Atomic Multi-path Payment)[7] system.
Payer Mediators Payee ================================================================================= data(512bit, padded)
share1(256bit) share2(256bit)
base_s = share1 XOR share2 data1(256bit) || data2(256bit) = data(512bit) XOR_d1 = data1 XOR base_s XOR_d2 = data2 XOR base_s PreImg1 = sha256(base_s || data || 1) PreImg2 = sha256(base_s || data || 2)
sha256(PreImg1), XOR_d1, share1 -> sha256(PreImg1), XOR_d1, share1 -> sha256(PreImg1), XOR_d1, share1 sha256(PreImg2), XOR_d2, share2 -> sha256(PreImg2), XOR_d2, share2 -> sha256(PreImg2), XOR_d2, share1
base
s = share1 XOR share2
data
= (XOR_d1 XOR base_s) || (XOR_d2 XOR base_s)
PreImg1 = sha256(base_s || data || 1)
PreImg2 = sha256(base_s || data || 2)
PreImg1 <------------------- PreImg1 <--------------------- PreImg1 PreImg2 <------------------- PreImg2 <--------------------- PreImg2
* This protocol example has 512 bits data and they are transferred in two paths. However, it can transfer larger data in several payment paths like [5]. * || means string concatenation. * If data is less than 512 bits, then 0x00 is padded(I am not sure which of big endian and little endian is better).
---------
[Use Cases]
1, Lightning Network ecosystem
* Hosting Incentives like Acai Protocol ** Watchtower Hosting incentive, Backup Hosting incentive *** Commitment tx data sending to Data Host(DLAS-up) **** Commitment tx data is embedded in preimage so that Payer can not send the data without remittance *** Channel backup data receiving from Data Host(DLAS-down) **** Channel backup data is embedded in preimage so that Payer can not receive the data without remittance
2, Crypto currency Problems
* Distributed secret key sharing (just come up with an idea though) ** As a key backup, one of secret key shares is distributed with encryption(DLAS-up) to some nodes, which nodes receive lightning payment as key managing fee. And the nodes send a proof for managing the key as response of bloom filter periodically, and exchange encrypted secret key share with lightning payment to asset holder(DLAS-down). ** For example 2 out of 3 multi signature key sharing, asset holder puts the first key, the custodial has the second key, and the third key at the lightning distribution nodes. Asset holders usually spend assets using their key and the key on Distributed Nodes.
3, Problems so far
* Prevention email spam and DDoS attack with large data ** Payer can not send email or data without remittance(DLAS-up) ** Payer can not receive reply-email without remittance(DLAS-down)
* Incentive of receiving advertisements on browser or desktop/mobile app ** Payer can not send advertisements without remittance(DLAS-up)
* Bounty for code bug fixes based on cryptographic proofs or secret computations ** (DLAS-down)
[References]
[1] https://bitcointalk.org/index.php?topic=321228 [2] https://twitter.com/roasbeef/status/964608261830750208 [3] https://eprint.iacr.org/2016/575 [4] https://github.com/storm-org/storm-spec [5] https://twitter.com/joostjgr/status/1190714028626251779 [6] https://github.com/lightningnetwork/lightning-rfc/pull/619 [7] https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2018/amp-atomic-multi-path-payments-over-lightning#m-6757b7a5
document on github: https://github.com/takaya-imai/data_lightning_atomic_swap
Best regards, Takaya Imai Email: takaya.imai at frontier-ptnrs.com, takaya.imai at unitedbitcoiners.com
Good morning Imai-san,
I believe for the download case this is superior: https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2019/proposal-lightning-pre-image-encryption-standard#m-ec7dbbc2 This has no restriction on the size of the data.
For the upload case, it seems for either OG AMP or with payment points + scalars and payment decorrelation, the summed blinding factor (i.e. the data sent in response to ACK in Stuckless) can be used to send data to the payee, by using an encryption key as well.
Regards, ZmnSCPxj
Hello Takaya,
I really liked the idea of data atomic swap mentioned over here. So
as of now if we consider transfer of a file (may of few KB) then you split
it into several blocks and use atomic multi path payment whole using the
blocks for embedding with the preimage inorder to obtain payment. But it
might be the case you may not have sufficient number of path to transfer
all the blocks at one go because of preimage size limitation of 256 bit (I
didn't get the point that there is no limitation on data size, can anyone
explain that ?). So may be you need several iteration and I presume thats
what lightning network will pitch in where we have several such
microtransactions going on. What happens if it fails in an iteration ? So
the recipient of the file remains happy with the partial content ? Or will
the payment be revoked (not sure how) if recipient doesn't get the full
content ?
On Mon, Nov 11, 2019 at 6:29 AM Takaya Imai <takaya.imai at frontier-ptnrs.com> wrote:
Quoted text (247 lines)
> Hi all, > > I propose Data Lightning Atomic Swap. > Anyone already have the same idea? > > > [Abstract] > This proposal is a way to swap data and lightning payment atomically. > It has two patterns, one is for a payer to swap data-download with > lightning payment to a payee (DLAS-down), the other is for a payer to swap > data-upload with lightning payment to a payee (DLAS-up). > > The data is embedded to preimage so sending and receiving the data need > lightning payment at the same time. > > --------- > > [Motivation] > Atomic Swaps among crypto currencies has various ways to implement > (on-chain to on-chain[1], on-chain to of-chain(Submarine Swap[2])). And > Atomic Swaps between data and crypto currencies are also proposed as a part > of TumbleBit mechanism[3], Storm mechanism[4] and so on. > > Recently Joost Jager proposed Instant messages with lightning onion > routing, whatsat[5], which use recent sphinx payload change[6]. This is > very awesome but not atomic with lightning payment. > > Atomic lightning mechanism for data is useful in use cases below. > > --------- > > [Pros & Cons] > > * DLAS-down > ** Pros > *** Atomic data download exchange with lightning payment > ** Cons > *** It needs better mechanism to expand data size > > * DLAS-up > ** Pros > *** Atomic data upload exchange with lightning payment > ** Cons > *** OG AMP[7] is needed to implement > > --------- > > [What I describe] > * A way to swap data with lightning payment atomically. > > --------- > > [What I do not describe] > * A way to detect that data is correct or not, namely zero knowledge proof > process. > > For example, probabilistic checkable proof like TumbleBit[3] proposed. > Just message as data is no problem because no need to check the message is > correct or not. > > * A way in case that different preimages are used in a payment route like > Multi-hop locks. > > --------- > > [Specification] > > Lightning Network(LN) has a mechanism about preimage like a brief image > below. > > Payer Mediators > Payee > > ================================================================================= > > Preimage > Preimage Hash <--------------------- invoice ------------------------ > Preimage Hash > Preimage Hash ----------------> Preimage Hash --------------------> > Preimage Hash > Preimage <—-------------—- Preimage <-------------------- > Preimage > > As you know, preimage Payer gets can be a proof of payment because Payer > can not get it if the payment is executed correctly. > > > > 1, Data download <-> lightning (DLAS-down) > > > Payer sends lightning payment and receives data from Payee atomically. > > > Payer Mediators > Payee > > ================================================================================= > Payer Channel Pubkey <-----------------------------------------------> > Payee Channel Pubkey > > > data(256bit, padded) > > enc_key = (Payee Channel Secret Key * Payer Channel Pubkey).x (256bit) > enc_key = (Payer Channel Secret Key * Payee Channel Pubkey).x (256bit) > > enc_data = data XOR enc_key > sha256(enc_data) <--------------------- invoice ---------------------- > sha256(enc_data) > sha256(enc_data) ----------------> sha256(enc_data) -----------------> > sha256(enc_data) > enc_data <---------------- enc_data <------------------------- > enc_data > data = enc_data XOR enc_key > > > * The size of data is restricted to 256 bits. Identically, it should be > extended to larger data and the data should be transferred in several > payment paths like DLAS-up. > * Channel Pubkey is only one for one channel and the data can be decrypted > if enc_key is leaked. So enc_key should be generated newly every time by a > way like hash chain but the protocol image above is just example for > simplicity. > * .x means X axis value of points on Elliptic Curve. > * If data is less than 256 bits, then 0x00 is padded (I am not sure which > of big endian and little endian is better). > > > > 2, Data upload <-> lightning (DLAS-down) > > Payer sends data and lightning payment from Payee atomically. > This is like OG AMP(Atomic Multi-path Payment)[7] system. > > Payer Mediators > Payee > > ================================================================================= > data(512bit, padded) > > share1(256bit) > share2(256bit) > > base_s = share1 XOR share2 > data1(256bit) || data2(256bit) = data(512bit) > XOR_d1 = data1 XOR base_s > XOR_d2 = data2 XOR base_s > PreImg1 = sha256(base_s || data || 1) > PreImg2 = sha256(base_s || data || 2) > > sha256(PreImg1), XOR_d1, share1 -> sha256(PreImg1), XOR_d1, share1 -> > sha256(PreImg1), XOR_d1, share1 > sha256(PreImg2), XOR_d2, share2 -> sha256(PreImg2), XOR_d2, share2 -> > sha256(PreImg2), XOR_d2, share1 > > > base s = share1 XOR share2 > > data = (XOR_d1 XOR base_s) || (XOR_d2 XOR base_s) > > PreImg1 = sha256(base_s || data || 1) > > PreImg2 = sha256(base_s || data || 2) > > PreImg1 <------------------- PreImg1 <--------------------- > PreImg1 > PreImg2 <------------------- PreImg2 <--------------------- > PreImg2 > > > * This protocol example has 512 bits data and they are transferred in two > paths. However, it can transfer larger data in several payment paths like > [5]. > * || means string concatenation. > * If data is less than 512 bits, then 0x00 is padded(I am not sure which > of big endian and little endian is better). > > > --------- > > > [Use Cases] > > 1, Lightning Network ecosystem > > * Hosting Incentives like Acai Protocol > ** Watchtower Hosting incentive, Backup Hosting incentive > *** Commitment tx data sending to Data Host(DLAS-up) > **** Commitment tx data is embedded in preimage so that Payer can not send > the data without remittance > *** Channel backup data receiving from Data Host(DLAS-down) > **** Channel backup data is embedded in preimage so that Payer can not > receive the data without remittance > > 2, Crypto currency Problems > > * Distributed secret key sharing (just come up with an idea though) > ** As a key backup, one of secret key shares is distributed with > encryption(DLAS-up) to some nodes, which nodes receive lightning payment as > key managing fee. And the nodes send a proof for managing the key as > response of bloom filter periodically, and exchange encrypted secret key > share with lightning payment to asset holder(DLAS-down). > ** For example 2 out of 3 multi signature key sharing, asset holder puts > the first key, the custodial has the second key, and the third key at the > lightning distribution nodes. Asset holders usually spend assets using > their key and the key on Distributed Nodes. > > > 3, Problems so far > > * Prevention email spam and DDoS attack with large data > ** Payer can not send email or data without remittance(DLAS-up) > ** Payer can not receive reply-email without remittance(DLAS-down) > > * Incentive of receiving advertisements on browser or desktop/mobile app > ** Payer can not send advertisements without remittance(DLAS-up) > > * Bounty for code bug fixes based on cryptographic proofs or secret > computations > ** (DLAS-down) > > > > [References] > > [1] https://bitcointalk.org/index.php?topic=321228 > [2] https://twitter.com/roasbeef/status/964608261830750208 > [3] https://eprint.iacr.org/2016/575 > [4] https://github.com/storm-org/storm-spec > [5] https://twitter.com/joostjgr/status/1190714028626251779 > [6] https://github.com/lightningnetwork/lightning-rfc/pull/619 > [7] > https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2018/amp-atomic-multi-path-payments-over-lightning#m-6757b7a5 > > > document on github: > https://github.com/takaya-imai/data_lightning_atomic_swap > > Best regards, > Takaya Imai > Email: takaya.imai at frontier-ptnrs.com, takaya.imai at unitedbitcoiners.com > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev >
Hi ZmnSCPxj,
Sorry for late reply. The no restriction version is very good.
Thanks, Takaya Imai
2019年11月12日(火) 9:13 ZmnSCPxj <ZmnSCPxj at protonmail.com>:
Quoted text (15 lines)
> Good morning Imai-san, > > I believe for the download case this is superior: > https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2019/proposal-lightning-pre-image-encryption-standard#m-ec7dbbc2 > This has no restriction on the size of the data. > > For the upload case, it seems for either OG AMP or with payment points + > scalars and payment decorrelation, the summed blinding factor (i.e. the > data sent in response to ACK in Stuckless) can be used to send data to the > payee, by using an encryption key as well. > > > Regards, > ZmnSCPxj >
Hi Subhra,
thanks for your question.
Quoted text (7 lines)
> So as of now if we consider transfer of a file (may of few KB) then you split it into several blocks and use atomic multi path payment whole using the blocks for embedding with the preimage inorder to obtain payment. > But it might be the case you may not have sufficient number of path to transfer all the blocks at one go because of preimage size limitation of 256 bit (I didn't get the point that there is no limitation on data size, can anyone explain that ?).
Yes. It needs many blocks and paths if large file. But it has no problem because it can use the same path several times.
Of course it needs much money to transfer large file. But this is good point in order to retain lightning network stable.
For DOS attack, OG AMP has the same problem. It might that recipient needs a limit how many split blocks the recipient accept
Quoted text (5 lines)
> So may be you need several iteration and I presume thats what lightning network will pitch in where we have several such microtransactions going on. > What happens if it fails in an iteration ? So the recipient of the file remains happy with the partial content ? Or will the payment be revoked (not sure how) if recipient doesn't get the full content ?
This is about the DLAS-up protocol. The protocol uses OG AMP so the payments and data transfers are revoked in case that it fails.
Thanks, Takaya Imai
2020年1月16日(木) 16:14 Subhra Mazumdar <subhra.mazumdar1993 at gmail.com>:
Quoted text (272 lines)
> Hello Takaya, > I really liked the idea of data atomic swap mentioned over here. > So as of now if we consider transfer of a file (may of few KB) then you > split it into several blocks and use atomic multi path payment whole using > the blocks for embedding with the preimage inorder to obtain payment. But > it might be the case you may not have sufficient number of path to transfer > all the blocks at one go because of preimage size limitation of 256 bit (I > didn't get the point that there is no limitation on data size, can anyone > explain that ?). So may be you need several iteration and I presume thats > what lightning network will pitch in where we have several such > microtransactions going on. What happens if it fails in an iteration ? So > the recipient of the file remains happy with the partial content ? Or will > the payment be revoked (not sure how) if recipient doesn't get the full > content ? > > On Mon, Nov 11, 2019 at 6:29 AM Takaya Imai < > takaya.imai at frontier-ptnrs.com> wrote: > >> Hi all, >> >> I propose Data Lightning Atomic Swap. >> Anyone already have the same idea? >> >> >> [Abstract] >> This proposal is a way to swap data and lightning payment atomically. >> It has two patterns, one is for a payer to swap data-download with >> lightning payment to a payee (DLAS-down), the other is for a payer to swap >> data-upload with lightning payment to a payee (DLAS-up). >> >> The data is embedded to preimage so sending and receiving the data need >> lightning payment at the same time. >> >> --------- >> >> [Motivation] >> Atomic Swaps among crypto currencies has various ways to implement >> (on-chain to on-chain[1], on-chain to of-chain(Submarine Swap[2])). And >> Atomic Swaps between data and crypto currencies are also proposed as a part >> of TumbleBit mechanism[3], Storm mechanism[4] and so on. >> >> Recently Joost Jager proposed Instant messages with lightning onion >> routing, whatsat[5], which use recent sphinx payload change[6]. This is >> very awesome but not atomic with lightning payment. >> >> Atomic lightning mechanism for data is useful in use cases below. >> >> --------- >> >> [Pros & Cons] >> >> * DLAS-down >> ** Pros >> *** Atomic data download exchange with lightning payment >> ** Cons >> *** It needs better mechanism to expand data size >> >> * DLAS-up >> ** Pros >> *** Atomic data upload exchange with lightning payment >> ** Cons >> *** OG AMP[7] is needed to implement >> >> --------- >> >> [What I describe] >> * A way to swap data with lightning payment atomically. >> >> --------- >> >> [What I do not describe] >> * A way to detect that data is correct or not, namely zero knowledge >> proof process. >> >> For example, probabilistic checkable proof like TumbleBit[3] proposed. >> Just message as data is no problem because no need to check the message >> is correct or not. >> >> * A way in case that different preimages are used in a payment route like >> Multi-hop locks. >> >> --------- >> >> [Specification] >> >> Lightning Network(LN) has a mechanism about preimage like a brief image >> below. >> >> Payer Mediators >> Payee >> >> ================================================================================= >> >> Preimage >> Preimage Hash <--------------------- invoice ------------------------ >> Preimage Hash >> Preimage Hash ----------------> Preimage Hash --------------------> >> Preimage Hash >> Preimage <—-------------—- Preimage <-------------------- >> Preimage >> >> As you know, preimage Payer gets can be a proof of payment because Payer >> can not get it if the payment is executed correctly. >> >> >> >> 1, Data download <-> lightning (DLAS-down) >> >> >> Payer sends lightning payment and receives data from Payee atomically. >> >> >> Payer Mediators >> Payee >> >> ================================================================================= >> Payer Channel Pubkey <-----------------------------------------------> >> Payee Channel Pubkey >> >> >> data(256bit, padded) >> >> enc_key = (Payee Channel Secret Key * Payer Channel Pubkey).x (256bit) >> enc_key = (Payer Channel Secret Key * Payee Channel Pubkey).x (256bit) >> >> enc_data = data XOR enc_key >> sha256(enc_data) <--------------------- invoice ---------------------- >> sha256(enc_data) >> sha256(enc_data) ----------------> sha256(enc_data) -----------------> >> sha256(enc_data) >> enc_data <---------------- enc_data <------------------------- >> enc_data >> data = enc_data XOR enc_key >> >> >> * The size of data is restricted to 256 bits. Identically, it should be >> extended to larger data and the data should be transferred in several >> payment paths like DLAS-up. >> * Channel Pubkey is only one for one channel and the data can be >> decrypted if enc_key is leaked. So enc_key should be generated newly every >> time by a way like hash chain but the protocol image above is just example >> for simplicity. >> * .x means X axis value of points on Elliptic Curve. >> * If data is less than 256 bits, then 0x00 is padded (I am not sure which >> of big endian and little endian is better). >> >> >> >> 2, Data upload <-> lightning (DLAS-down) >> >> Payer sends data and lightning payment from Payee atomically. >> This is like OG AMP(Atomic Multi-path Payment)[7] system. >> >> Payer Mediators >> Payee >> >> ================================================================================= >> data(512bit, padded) >> >> share1(256bit) >> share2(256bit) >> >> base_s = share1 XOR share2 >> data1(256bit) || data2(256bit) = data(512bit) >> XOR_d1 = data1 XOR base_s >> XOR_d2 = data2 XOR base_s >> PreImg1 = sha256(base_s || data || 1) >> PreImg2 = sha256(base_s || data || 2) >> >> sha256(PreImg1), XOR_d1, share1 -> sha256(PreImg1), XOR_d1, share1 -> >> sha256(PreImg1), XOR_d1, share1 >> sha256(PreImg2), XOR_d2, share2 -> sha256(PreImg2), XOR_d2, share2 -> >> sha256(PreImg2), XOR_d2, share1 >> >> >> base s = share1 XOR share2 >> >> data = (XOR_d1 XOR base_s) || (XOR_d2 XOR base_s) >> >> PreImg1 = sha256(base_s || data || 1) >> >> PreImg2 = sha256(base_s || data || 2) >> >> PreImg1 <------------------- PreImg1 <--------------------- >> PreImg1 >> PreImg2 <------------------- PreImg2 <--------------------- >> PreImg2 >> >> >> * This protocol example has 512 bits data and they are transferred in two >> paths. However, it can transfer larger data in several payment paths like >> [5]. >> * || means string concatenation. >> * If data is less than 512 bits, then 0x00 is padded(I am not sure which >> of big endian and little endian is better). >> >> >> --------- >> >> >> [Use Cases] >> >> 1, Lightning Network ecosystem >> >> * Hosting Incentives like Acai Protocol >> ** Watchtower Hosting incentive, Backup Hosting incentive >> *** Commitment tx data sending to Data Host(DLAS-up) >> **** Commitment tx data is embedded in preimage so that Payer can not >> send the data without remittance >> *** Channel backup data receiving from Data Host(DLAS-down) >> **** Channel backup data is embedded in preimage so that Payer can not >> receive the data without remittance >> >> 2, Crypto currency Problems >> >> * Distributed secret key sharing (just come up with an idea though) >> ** As a key backup, one of secret key shares is distributed with >> encryption(DLAS-up) to some nodes, which nodes receive lightning payment as >> key managing fee. And the nodes send a proof for managing the key as >> response of bloom filter periodically, and exchange encrypted secret key >> share with lightning payment to asset holder(DLAS-down). >> ** For example 2 out of 3 multi signature key sharing, asset holder puts >> the first key, the custodial has the second key, and the third key at the >> lightning distribution nodes. Asset holders usually spend assets using >> their key and the key on Distributed Nodes. >> >> >> 3, Problems so far >> >> * Prevention email spam and DDoS attack with large data >> ** Payer can not send email or data without remittance(DLAS-up) >> ** Payer can not receive reply-email without remittance(DLAS-down) >> >> * Incentive of receiving advertisements on browser or desktop/mobile app >> ** Payer can not send advertisements without remittance(DLAS-up) >> >> * Bounty for code bug fixes based on cryptographic proofs or secret >> computations >> ** (DLAS-down) >> >> >> >> [References] >> >> [1] https://bitcointalk.org/index.php?topic=321228 >> [2] https://twitter.com/roasbeef/status/964608261830750208 >> [3] https://eprint.iacr.org/2016/575 >> [4] https://github.com/storm-org/storm-spec >> [5] https://twitter.com/joostjgr/status/1190714028626251779 >> [6] https://github.com/lightningnetwork/lightning-rfc/pull/619 >> [7] >> https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2018/amp-atomic-multi-path-payments-over-lightning#m-6757b7a5 >> >> >> document on github: >> https://github.com/takaya-imai/data_lightning_atomic_swap >> >> Best regards, >> Takaya Imai >> Email: takaya.imai at frontier-ptnrs.com, takaya.imai at unitedbitcoiners.com >> _______________________________________________ >> Lightning-dev mailing list >> Lightning-dev at lists.linuxfoundation.org >> https://www.learnbitcoin.com/archive/lists/lightning-dev >> > > > -- > Yours sincerely, > Subhra Mazumdar. > >
Thanks Takaya for clearing my doubts. Regarding the answer to the question
"What happens if it fails in an iteration ? So the recipient of the file remains happy with the partial content ? Or will the payment be revoked (not sure how) if recipient doesn't get the full content ?
This is about the DLAS-up protocol. The protocol uses OG AMP so the payments and data transfers are revoked in case that it fails"
I am talking about different iterations. If it's the case that you have a 5GB file then you are sending 256bit via each path. May be in one iteration you are able to send some 200 byte (assuming we get 8 paths at a time). So it's the case that you need 5GB/200B iterations. But og amp guarantees atomic delivery for blocks per iteration right and not for all the iterations taken together ? Also how do you ensure correctness of the file shared (using Zk proof ?) ?
On Mon, Jan 20, 2020, 12:03 Takaya Imai <takaya.imai at frontier-ptnrs.com> wrote:
Quoted text (303 lines)
> Hi Subhra, > > thanks for your question. > > > So as of now if we consider transfer of a file (may of few KB) then you > split it into several blocks and use atomic multi path payment whole using > the blocks for embedding with the preimage inorder to obtain payment. > > But it might be the case you may not have sufficient number of path to > transfer all the blocks at one go because of preimage size limitation of > 256 bit (I didn't get the point that there is no limitation on data size, > can anyone explain that ?). > > Yes. It needs many blocks and paths if large file. > But it has no problem because it can use the same path several times. > > Of course it needs much money to transfer large file. But this is good > point in order to retain lightning network stable. > > For DOS attack, OG AMP has the same problem. It might that recipient needs > a limit how many split blocks the recipient accept > > > So may be you need several iteration and I presume thats what lightning > network will pitch in where we have several such microtransactions going on. > >. > > Thanks, > Takaya Imai > > 2020年1月16日(木) 16:14 Subhra Mazumdar <subhra.mazumdar1993 at gmail.com>: > >> Hello Takaya, >> I really liked the idea of data atomic swap mentioned over here. >> So as of now if we consider transfer of a file (may of few KB) then you >> split it into several blocks and use atomic multi path payment whole using >> the blocks for embedding with the preimage inorder to obtain payment. But >> it might be the case you may not have sufficient number of path to transfer >> all the blocks at one go because of preimage size limitation of 256 bit (I >> didn't get the point that there is no limitation on data size, can anyone >> explain that ?). So may be you need several iteration and I presume thats >> what lightning network will pitch in where we have several such >> microtransactions going on. What happens if it fails in an iteration ? So >> the recipient of the file remains happy with the partial content ? Or will >> the payment be revoked (not sure how) if recipient doesn't get the full >> content ? >> >> On Mon, Nov 11, 2019 at 6:29 AM Takaya Imai < >> takaya.imai at frontier-ptnrs.com> wrote: >> >>> Hi all, >>> >>> I propose Data Lightning Atomic Swap. >>> Anyone already have the same idea? >>> >>> >>> [Abstract] >>> This proposal is a way to swap data and lightning payment atomically. >>> It has two patterns, one is for a payer to swap data-download with >>> lightning payment to a payee (DLAS-down), the other is for a payer to swap >>> data-upload with lightning payment to a payee (DLAS-up). >>> >>> The data is embedded to preimage so sending and receiving the data need >>> lightning payment at the same time. >>> >>> --------- >>> >>> [Motivation] >>> Atomic Swaps among crypto currencies has various ways to implement >>> (on-chain to on-chain[1], on-chain to of-chain(Submarine Swap[2])). And >>> Atomic Swaps between data and crypto currencies are also proposed as a part >>> of TumbleBit mechanism[3], Storm mechanism[4] and so on. >>> >>> Recently Joost Jager proposed Instant messages with lightning onion >>> routing, whatsat[5], which use recent sphinx payload change[6]. This is >>> very awesome but not atomic with lightning payment. >>> >>> Atomic lightning mechanism for data is useful in use cases below. >>> >>> --------- >>> >>> [Pros & Cons] >>> >>> * DLAS-down >>> ** Pros >>> *** Atomic data download exchange with lightning payment >>> ** Cons >>> *** It needs better mechanism to expand data size >>> >>> * DLAS-up >>> ** Pros >>> *** Atomic data upload exchange with lightning payment >>> ** Cons >>> *** OG AMP[7] is needed to implement >>> >>> --------- >>> >>> [What I describe] >>> * A way to swap data with lightning payment atomically. >>> >>> --------- >>> >>> [What I do not describe] >>> * A way to detect that data is correct or not, namely zero knowledge >>> proof process. >>> >>> For example, probabilistic checkable proof like TumbleBit[3] proposed. >>> Just message as data is no problem because no need to check the message >>> is correct or not. >>> >>> * A way in case that different preimages are used in a payment route >>> like Multi-hop locks. >>> >>> --------- >>> >>> [Specification] >>> >>> Lightning Network(LN) has a mechanism about preimage like a brief image >>> below. >>> >>> Payer Mediators >>> Payee >>> >>> ================================================================================= >>> >>> Preimage >>> Preimage Hash <--------------------- invoice ------------------------ >>> Preimage Hash >>> Preimage Hash ----------------> Preimage Hash --------------------> >>> Preimage Hash >>> Preimage <—-------------—- Preimage <-------------------- >>> Preimage >>> >>> As you know, preimage Payer gets can be a proof of payment because Payer >>> can not get it if the payment is executed correctly. >>> >>> >>> >>> 1, Data download <-> lightning (DLAS-down) >>> >>> >>> Payer sends lightning payment and receives data from Payee atomically. >>> >>> >>> Payer Mediators >>> Payee >>> >>> ================================================================================= >>> Payer Channel Pubkey <-----------------------------------------------> >>> Payee Channel Pubkey >>> >>> >>> data(256bit, padded) >>> >>> enc_key = (Payee Channel Secret Key * Payer Channel Pubkey).x (256bit) >>> enc_key = (Payer Channel Secret Key * Payee Channel Pubkey).x (256bit) >>> >>> enc_data = data XOR enc_key >>> sha256(enc_data) <--------------------- invoice ---------------------- >>> sha256(enc_data) >>> sha256(enc_data) ----------------> sha256(enc_data) -----------------> >>> sha256(enc_data) >>> enc_data <---------------- enc_data <------------------------- >>> enc_data >>> data = enc_data XOR enc_key >>> >>> >>> * The size of data is restricted to 256 bits. Identically, it should be >>> extended to larger data and the data should be transferred in several >>> payment paths like DLAS-up. >>> * Channel Pubkey is only one for one channel and the data can be >>> decrypted if enc_key is leaked. So enc_key should be generated newly every >>> time by a way like hash chain but the protocol image above is just example >>> for simplicity. >>> * .x means X axis value of points on Elliptic Curve. >>> * If data is less than 256 bits, then 0x00 is padded (I am not sure >>> which of big endian and little endian is better). >>> >>> >>> >>> 2, Data upload <-> lightning (DLAS-down) >>> >>> Payer sends data and lightning payment from Payee atomically. >>> This is like OG AMP(Atomic Multi-path Payment)[7] system. >>> >>> Payer Mediators >>> Payee >>> >>> ================================================================================= >>> data(512bit, padded) >>> >>> share1(256bit) >>> share2(256bit) >>> >>> base_s = share1 XOR share2 >>> data1(256bit) || data2(256bit) = data(512bit) >>> XOR_d1 = data1 XOR base_s >>> XOR_d2 = data2 XOR base_s >>> PreImg1 = sha256(base_s || data || 1) >>> PreImg2 = sha256(base_s || data || 2) >>> >>> sha256(PreImg1), XOR_d1, share1 -> sha256(PreImg1), XOR_d1, share1 -> >>> sha256(PreImg1), XOR_d1, share1 >>> sha256(PreImg2), XOR_d2, share2 -> sha256(PreImg2), XOR_d2, share2 -> >>> sha256(PreImg2), XOR_d2, share1 >>> >>> >>> base s = share1 XOR share2 >>> >>> data = (XOR_d1 XOR base_s) || (XOR_d2 XOR base_s) >>> >>> PreImg1 = sha256(base_s || data || 1) >>> >>> PreImg2 = sha256(base_s || data || 2) >>> >>> PreImg1 <------------------- PreImg1 <--------------------- >>> PreImg1 >>> PreImg2 <------------------- PreImg2 <--------------------- >>> PreImg2 >>> >>> >>> * This protocol example has 512 bits data and they are transferred in >>> two paths. However, it can transfer larger data in several payment paths >>> like [5]. >>> * || means string concatenation. >>> * If data is less than 512 bits, then 0x00 is padded(I am not sure which >>> of big endian and little endian is better). >>> >>> >>> --------- >>> >>> >>> [Use Cases] >>> >>> 1, Lightning Network ecosystem >>> >>> * Hosting Incentives like Acai Protocol >>> ** Watchtower Hosting incentive, Backup Hosting incentive >>> *** Commitment tx data sending to Data Host(DLAS-up) >>> **** Commitment tx data is embedded in preimage so that Payer can not >>> send the data without remittance >>> *** Channel backup data receiving from Data Host(DLAS-down) >>> **** Channel backup data is embedded in preimage so that Payer can not >>> receive the data without remittance >>> >>> 2, Crypto currency Problems >>> >>> * Distributed secret key sharing (just come up with an idea though) >>> ** As a key backup, one of secret key shares is distributed with >>> encryption(DLAS-up) to some nodes, which nodes receive lightning payment as >>> key managing fee. And the nodes send a proof for managing the key as >>> response of bloom filter periodically, and exchange encrypted secret key >>> share with lightning payment to asset holder(DLAS-down). >>> ** For example 2 out of 3 multi signature key sharing, asset holder puts >>> the first key, the custodial has the second key, and the third key at the >>> lightning distribution nodes. Asset holders usually spend assets using >>> their key and the key on Distributed Nodes. >>> >>> >>> 3, Problems so far >>> >>> * Prevention email spam and DDoS attack with large data >>> ** Payer can not send email or data without remittance(DLAS-up) >>> ** Payer can not receive reply-email without remittance(DLAS-down) >>> >>> * Incentive of receiving advertisements on browser or desktop/mobile app >>> ** Payer can not send advertisements without remittance(DLAS-up) >>> >>> * Bounty for code bug fixes based on cryptographic proofs or secret >>> computations >>> ** (DLAS-down) >>> >>> >>> >>> [References] >>> >>> [1] https://bitcointalk.org/index.php?topic=321228 >>> [2] https://twitter.com/roasbeef/status/964608261830750208 >>> [3] https://eprint.iacr.org/2016/575 >>> [4] https://github.com/storm-org/storm-spec >>> [5] https://twitter.com/joostjgr/status/1190714028626251779 >>> [6] https://github.com/lightningnetwork/lightning-rfc/pull/619 >>> [7] >>> https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2018/amp-atomic-multi-path-payments-over-lightning#m-6757b7a5 >>> >>> >>> document on github: >>> https://github.com/takaya-imai/data_lightning_atomic_swap >>> >>> Best regards, >>> Takaya Imai >>> Email: takaya.imai at frontier-ptnrs.com, takaya.imai at unitedbitcoiners.com >>> _______________________________________________ >>> Lightning-dev mailing list >>> Lightning-dev at lists.linuxfoundation.org >>> https://www.learnbitcoin.com/archive/lists/lightning-dev >>> >> >> >> -- >> Yours sincerely, >> Subhra Mazumdar. >> >> >>
On 11/9/19 4:31 AM, Takaya Imai wrote:
Quoted text (3 lines)
> [What I do not describe] > * A way to detect that data is correct or not, namely zero knowledge > proof process.
Have you come across Zero Knowledge Contingent Payments? Originally it was designed for on-chain applications but it slots neatly into lightning as it only requires a method to lock funds to a hash preimage.
Matt
Are you referring to the paper Zero knowledge contingent payment revisited ? I will look into the construction. Thanks for the information! :)
On Mon, Jan 20, 2020, 23:31 Matt Corallo <lf-lists at mattcorallo.com> wrote:
Quoted text (15 lines)
> On 11/9/19 4:31 AM, Takaya Imai wrote: > > [What I do not describe] > > * A way to detect that data is correct or not, namely zero knowledge > > proof process. > > Have you come across Zero Knowledge Contingent Payments? Originally it > was designed for on-chain applications but it slots neatly into > lightning as it only requires a method to lock funds to a hash preimage. > > Matt > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev >
That paper discusses it, but I don't think there was ever a paper proper on ZKCP. There are various discussions of it, though, if you google. Sadly this is common in this space - lots of great ideas where no one ever bothered to write academic-style papers about them (hence why academic papers around Bitcoin tend to miss nearly all relevant context, sadly).
Matt
On 1/20/20 6:10 PM, Subhra Mazumdar wrote:
Quoted text (23 lines)
> Are you referring to the paper Zero knowledge contingent payment > revisited ? I will look into the construction. Thanks for the > information! :) > > On Mon, Jan 20, 2020, 23:31 Matt Corallo <lf-lists at mattcorallo.com > <mailto:lf-lists at mattcorallo.com>> wrote: > > On 11/9/19 4:31 AM, Takaya Imai wrote: > > [What I do not describe] > > * A way to detect that data is correct or not, namely zero knowledge > > proof process. > > Have you come across Zero Knowledge Contingent Payments? Originally it > was designed for on-chain applications but it slots neatly into > lightning as it only requires a method to lock funds to a hash preimage. > > Matt > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > <mailto:Lightning-dev at lists.linuxfoundation.org> > https://www.learnbitcoin.com/archive/lists/lightning-dev >
But isn't it that the use of ZK proof will render the system slow and hence defy the very purpose of lightning network which intends to make things scalable as well as faster transaction ?
On Mon, Jan 20, 2020 at 11:48 PM Matt Corallo <lf-lists at mattcorallo.com> wrote:
Quoted text (37 lines)
> That paper discusses it, but I don't think there was ever a paper proper > on ZKCP. There are various discussions of it, though, if you google. > Sadly this is common in this space - lots of great ideas where no one > ever bothered to write academic-style papers about them (hence why > academic papers around Bitcoin tend to miss nearly all relevant context, > sadly). > > Matt > > On 1/20/20 6:10 PM, Subhra Mazumdar wrote: > > Are you referring to the paper Zero knowledge contingent payment > > revisited ? I will look into the construction. Thanks for the > > information! :) > > > > On Mon, Jan 20, 2020, 23:31 Matt Corallo <lf-lists at mattcorallo.com > > <mailto:lf-lists at mattcorallo.com>> wrote: > > > > On 11/9/19 4:31 AM, Takaya Imai wrote: > > > [What I do not describe] > > > * A way to detect that data is correct or not, namely zero > knowledge > > > proof process. > > > > Have you come across Zero Knowledge Contingent Payments? Originally > it > > was designed for on-chain applications but it slots neatly into > > lightning as it only requires a method to lock funds to a hash > preimage. > > > > Matt > > _______________________________________________ > > Lightning-dev mailing list > > Lightning-dev at lists.linuxfoundation.org > > <mailto:Lightning-dev at lists.linuxfoundation.org> > > https://www.learnbitcoin.com/archive/lists/lightning-dev > > >
Zk proofs are incredibly fast these days for small-ish programs. They’re much too slow for a consensus system where every party needs to download and validate them, but for relatively simple programs a two-party system using them is very doable.
Quoted text (45 lines)
> On Jan 20, 2020, at 13:23, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> wrote: > > > But isn't it that the use of ZK proof will render the system slow and hence defy the very purpose of lightning network which intends to make things scalable as well as faster transaction ? > >> On Mon, Jan 20, 2020 at 11:48 PM Matt Corallo <lf-lists at mattcorallo.com> wrote: >> That paper discusses it, but I don't think there was ever a paper proper >> on ZKCP. There are various discussions of it, though, if you google. >> Sadly this is common in this space - lots of great ideas where no one >> ever bothered to write academic-style papers about them (hence why >> academic papers around Bitcoin tend to miss nearly all relevant context, >> sadly). >> >> Matt >> >> On 1/20/20 6:10 PM, Subhra Mazumdar wrote: >> > Are you referring to the paper Zero knowledge contingent payment >> > revisited ? I will look into the construction. Thanks for the >> > information! :) >> > >> > On Mon, Jan 20, 2020, 23:31 Matt Corallo <lf-lists at mattcorallo.com >> > <mailto:lf-lists at mattcorallo.com>> wrote: >> > >> > On 11/9/19 4:31 AM, Takaya Imai wrote: >> > > [What I do not describe] >> > > * A way to detect that data is correct or not, namely zero knowledge >> > > proof process. >> > >> > Have you come across Zero Knowledge Contingent Payments? Originally it >> > was designed for on-chain applications but it slots neatly into >> > lightning as it only requires a method to lock funds to a hash preimage. >> > >> > Matt >> > _______________________________________________ >> > Lightning-dev mailing list >> > Lightning-dev at lists.linuxfoundation.org >> > <mailto:Lightning-dev at lists.linuxfoundation.org> >> > https://www.learnbitcoin.com/archive/lists/lightning-dev >> > > > > -- > Yours sincerely, > Subhra Mazumdar. >
Sounds good. But how do I provide a correctness for the entire asset to be transferred when I am already partitioning into several units (say chunks of file ? ) So as an when the block of file is received then we have to give a ZK proof "block x is part of File F". Is it how this should work ?
On Mon, Jan 20, 2020 at 11:59 PM Matt Corallo <lf-lists at mattcorallo.com> wrote:
Quoted text (60 lines)
> Zk proofs are incredibly fast these days for small-ish programs. They’re > much too slow for a consensus system where every party needs to download > and validate them, but for relatively simple programs a two-party system > using them is very doable. > > On Jan 20, 2020, at 13:23, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> > wrote: > > > But isn't it that the use of ZK proof will render the system slow and > hence defy the very purpose of lightning network which intends to make > things scalable as well as faster transaction ? > > On Mon, Jan 20, 2020 at 11:48 PM Matt Corallo <lf-lists at mattcorallo.com> > wrote: > >> That paper discusses it, but I don't think there was ever a paper proper >> on ZKCP. There are various discussions of it, though, if you google. >> Sadly this is common in this space - lots of great ideas where no one >> ever bothered to write academic-style papers about them (hence why >> academic papers around Bitcoin tend to miss nearly all relevant context, >> sadly). >> >> Matt >> >> On 1/20/20 6:10 PM, Subhra Mazumdar wrote: >> > Are you referring to the paper Zero knowledge contingent payment >> > revisited ? I will look into the construction. Thanks for the >> > information! :) >> > >> > On Mon, Jan 20, 2020, 23:31 Matt Corallo <lf-lists at mattcorallo.com >> > <mailto:lf-lists at mattcorallo.com>> wrote: >> > >> > On 11/9/19 4:31 AM, Takaya Imai wrote: >> > > [What I do not describe] >> > > * A way to detect that data is correct or not, namely zero >> knowledge >> > > proof process. >> > >> > Have you come across Zero Knowledge Contingent Payments? Originally >> it >> > was designed for on-chain applications but it slots neatly into >> > lightning as it only requires a method to lock funds to a hash >> preimage. >> > >> > Matt >> > _______________________________________________ >> > Lightning-dev mailing list >> > Lightning-dev at lists.linuxfoundation.org >> > <mailto:Lightning-dev at lists.linuxfoundation.org> >> > https://www.learnbitcoin.com/archive/lists/lightning-dev >> > >> > > > -- > Yours sincerely, > Subhra Mazumdar. > >
Don’t and data in lighting payments unless you have to. It’s super DoS-y and rude to your peers. If you’re just transferring a file, you can use ZKCP to send an encrypted copy of the file with the encryption key being the payment_preimage, making the whole thing one big atomic action.
Quoted text (59 lines)
> On Jan 20, 2020, at 13:33, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> wrote: > > > Sounds good. But how do I provide a correctness for the entire asset to be transferred when I am already partitioning into several units (say chunks of file ? ) So as an when the block of file is received then we have to give a ZK proof "block x is part of File F". Is it how this should work ? > >> On Mon, Jan 20, 2020 at 11:59 PM Matt Corallo <lf-lists at mattcorallo.com> wrote: >> Zk proofs are incredibly fast these days for small-ish programs. They’re much too slow for a consensus system where every party needs to download and validate them, but for relatively simple programs a two-party system using them is very doable. >> >>>> On Jan 20, 2020, at 13:23, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> wrote: >>>> >>> >>> But isn't it that the use of ZK proof will render the system slow and hence defy the very purpose of lightning network which intends to make things scalable as well as faster transaction ? >>> >>>> On Mon, Jan 20, 2020 at 11:48 PM Matt Corallo <lf-lists at mattcorallo.com> wrote: >>>> That paper discusses it, but I don't think there was ever a paper proper >>>> on ZKCP. There are various discussions of it, though, if you google. >>>> Sadly this is common in this space - lots of great ideas where no one >>>> ever bothered to write academic-style papers about them (hence why >>>> academic papers around Bitcoin tend to miss nearly all relevant context, >>>> sadly). >>>> >>>> Matt >>>> >>>> On 1/20/20 6:10 PM, Subhra Mazumdar wrote: >>>> > Are you referring to the paper Zero knowledge contingent payment >>>> > revisited ? I will look into the construction. Thanks for the >>>> > information! :) >>>> > >>>> > On Mon, Jan 20, 2020, 23:31 Matt Corallo <lf-lists at mattcorallo.com >>>> > <mailto:lf-lists at mattcorallo.com>> wrote: >>>> > >>>> > On 11/9/19 4:31 AM, Takaya Imai wrote: >>>> > > [What I do not describe] >>>> > > * A way to detect that data is correct or not, namely zero knowledge >>>> > > proof process. >>>> > >>>> > Have you come across Zero Knowledge Contingent Payments? Originally it >>>> > was designed for on-chain applications but it slots neatly into >>>> > lightning as it only requires a method to lock funds to a hash preimage. >>>> > >>>> > Matt >>>> > _______________________________________________ >>>> > Lightning-dev mailing list >>>> > Lightning-dev at lists.linuxfoundation.org >>>> > <mailto:Lightning-dev at lists.linuxfoundation.org> >>>> > https://www.learnbitcoin.com/archive/lists/lightning-dev >>>> > >>> >>> >>> -- >>> Yours sincerely, >>> Subhra Mazumdar. >>> > > > -- > Yours sincerely, > Subhra Mazumdar. >
So is it sufficient to give a zk proof of the entire file and not of the individual blocks which are transferred at each iteration? Also does it make sense that you make partial payment per block instead of waiting for the total file to arrive. It might be the case that the zk proof of the total file is correct but then sender might cheat while sending individual block.
On Tue, Jan 21, 2020, 00:26 Matt Corallo <lf-lists at mattcorallo.com> wrote:
Quoted text (83 lines)
> Don’t and data in lighting payments unless you have to. It’s super DoS-y > and rude to your peers. If you’re just transferring a file, you can use > ZKCP to send an encrypted copy of the file with the encryption key being > the payment_preimage, making the whole thing one big atomic action. > > On Jan 20, 2020, at 13:33, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> > wrote: > > > Sounds good. But how do I provide a correctness for the entire asset to be > transferred when I am already partitioning into several units (say chunks > of file ? ) So as an when the block of file is received then we have to > give a ZK proof "block x is part of File F". Is it how this should work ? > > On Mon, Jan 20, 2020 at 11:59 PM Matt Corallo <lf-lists at mattcorallo.com> > wrote: > >> Zk proofs are incredibly fast these days for small-ish programs. They’re >> much too slow for a consensus system where every party needs to download >> and validate them, but for relatively simple programs a two-party system >> using them is very doable. >> >> On Jan 20, 2020, at 13:23, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> >> wrote: >> >> >> But isn't it that the use of ZK proof will render the system slow and >> hence defy the very purpose of lightning network which intends to make >> things scalable as well as faster transaction ? >> >> On Mon, Jan 20, 2020 at 11:48 PM Matt Corallo <lf-lists at mattcorallo.com> >> wrote: >> >>> That paper discusses it, but I don't think there was ever a paper proper >>> on ZKCP. There are various discussions of it, though, if you google. >>> Sadly this is common in this space - lots of great ideas where no one >>> ever bothered to write academic-style papers about them (hence why >>> academic papers around Bitcoin tend to miss nearly all relevant context, >>> sadly). >>> >>> Matt >>> >>> On 1/20/20 6:10 PM, Subhra Mazumdar wrote: >>> > Are you referring to the paper Zero knowledge contingent payment >>> > revisited ? I will look into the construction. Thanks for the >>> > information! :) >>> > >>> > On Mon, Jan 20, 2020, 23:31 Matt Corallo <lf-lists at mattcorallo.com >>> > <mailto:lf-lists at mattcorallo.com>> wrote: >>> > >>> > On 11/9/19 4:31 AM, Takaya Imai wrote: >>> > > [What I do not describe] >>> > > * A way to detect that data is correct or not, namely zero >>> knowledge >>> > > proof process. >>> > >>> > Have you come across Zero Knowledge Contingent Payments? >>> Originally it >>> > was designed for on-chain applications but it slots neatly into >>> > lightning as it only requires a method to lock funds to a hash >>> preimage. >>> > >>> > Matt >>> > _______________________________________________ >>> > Lightning-dev mailing list >>> > Lightning-dev at lists.linuxfoundation.org >>> > <mailto:Lightning-dev at lists.linuxfoundation.org> >>> > https://www.learnbitcoin.com/archive/lists/lightning-dev >>> > >>> >> >> >> -- >> Yours sincerely, >> Subhra Mazumdar. >> >> > > -- > Yours sincerely, > Subhra Mazumdar. > >
Good morning Subhra,
Refer to this protocol instead of DLAS: https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2019/proposal-lightning-pre-image-encryption-standard#m-ec7dbbc2 In this protocol, an *encrypted* form of the *entire file* is sent. Consequently, a *single* payment is made, where the payment preimage is the decryption key. Knowing an additional zk proof is necessary to show that the file is indeed encrypted using the decryption key that is the preimage of the given hash (the linked thread has details I believe).
Relevantly, there is no need to consider blocks of a file when using the linked protocol instead of DLAS. Of course, a Zk-proof of some property of the entire file, that can be understood by an end-user, may not be possible. Likely, you might want to prove of a video file that a thumbnail of the video file is extracted from a frame of the video, and show that thumbnail to the end-user. Looking at the *rest* of the frames of the video (after you have paid for its decryption) may very reveal them to be frames of a video of Rick Astley singing "Never Gonna Give You Up". !
Regards, ZmnSCPxj
Quoted text (63 lines)
> So is it sufficient to give a zk proof of the entire file and not of the individual blocks which are transferred at each iteration? Also does it make sense that you make partial payment per block instead of waiting for the total file to arrive. It might be the case that the zk proof of the total file is correct but then sender might cheat while sending individual block. > > On Tue, Jan 21, 2020, 00:26 Matt Corallo <lf-lists at mattcorallo.com> wrote: > > > Don’t and data in lighting payments unless you have to. It’s super DoS-y and rude to your peers. If you’re just transferring a file, you can use ZKCP to send an encrypted copy of the file with the encryption key being the payment_preimage, making the whole thing one big atomic action. > > > > > On Jan 20, 2020, at 13:33, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> wrote: > > > > > > > > Sounds good. But how do I provide a correctness for the entire asset to be transferred when I am already partitioning into several units (say chunks of file ? ) So as an when the block of file is received then we have to give a ZK proof "block x is part of File F". Is it how this should work ? > > > > > > On Mon, Jan 20, 2020 at 11:59 PM Matt Corallo <lf-lists at mattcorallo.com> wrote: > > > > > > > Zk proofs are incredibly fast these days for small-ish programs. They’re much too slow for a consensus system where every party needs to download and validate them, but for relatively simple programs a two-party system using them is very doable. > > > > > > > > > On Jan 20, 2020, at 13:23, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> wrote: > > > > > > > > > > > > > > But isn't it that the use of ZK proof will render the system slow and hence defy the very purpose of lightning network which intends to make things scalable as well as faster transaction ? > > > > > > > > > > On Mon, Jan 20, 2020 at 11:48 PM Matt Corallo <lf-lists at mattcorallo.com> wrote: > > > > > > > > > > > That paper discusses it, but I don't think there was ever a paper proper > > > > > > on ZKCP. There are various discussions of it, though, if you google. > > > > > > Sadly this is common in this space - lots of great ideas where no one > > > > > > ever bothered to write academic-style papers about them (hence why > > > > > > academic papers around Bitcoin tend to miss nearly all relevant context, > > > > > > sadly). > > > > > > > > > > > > Matt > > > > > > > > > > > > On 1/20/20 6:10 PM, Subhra Mazumdar wrote: > > > > > > > Are you referring to the paper Zero knowledge contingent payment > > > > > > > revisited ? I will look into the construction. Thanks for the > > > > > > > information! :) > > > > > > > > > > > > > > On Mon, Jan 20, 2020, 23:31 Matt Corallo <lf-lists at mattcorallo.com > > > > > > > <mailto:lf-lists at mattcorallo.com>> wrote: > > > > > > > > > > > > > > On 11/9/19 4:31 AM, Takaya Imai wrote: > > > > > > > > [What I do not describe] > > > > > > > > * A way to detect that data is correct or not, namely zero knowledge > > > > > > > > proof process. > > > > > > > > > > > > > > Have you come across Zero Knowledge Contingent Payments? Originally it > > > > > > > was designed for on-chain applications but it slots neatly into > > > > > > > lightning as it only requires a method to lock funds to a hash preimage. > > > > > > > > > > > > > > Matt > > > > > > > _______________________________________________ > > > > > > > Lightning-dev mailing list > > > > > > > Lightning-dev at lists.linuxfoundation.org > > > > > > > <mailto:Lightning-dev at lists.linuxfoundation.org> > > > > > > > https://www.learnbitcoin.com/archive/lists/lightning-dev > > > > > > > > > > > > > > > > > -- > > > > > Yours sincerely, > > > > > Subhra Mazumdar. > > > > > > -- > > > Yours sincerely, > > > Subhra Mazumdar.
Thanks for the link. I will have a look.
On Tue, Jan 21, 2020, 06:17 ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote:
Quoted text (125 lines)
> Good morning Subhra, > > Refer to this protocol instead of DLAS: > https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2019/proposal-lightning-pre-image-encryption-standard#m-ec7dbbc2 > In this protocol, an *encrypted* form of the *entire file* is sent. > Consequently, a *single* payment is made, where the payment preimage is > the decryption key. > Knowing an additional zk proof is necessary to show that the file is > indeed encrypted using the decryption key that is the preimage of the given > hash (the linked thread has details I believe). > > Relevantly, there is no need to consider blocks of a file when using the > linked protocol instead of DLAS. > Of course, a Zk-proof of some property of the entire file, that can be > understood by an end-user, may not be possible. > Likely, you might want to prove of a video file that a thumbnail of the > video file is extracted from a frame of the video, and show that thumbnail > to the end-user. > Looking at the *rest* of the frames of the video (after you have paid for > its decryption) may very reveal them to be frames of a video of Rick Astley > singing "Never Gonna Give You Up". > ! > > Regards, > ZmnSCPxj > > > So is it sufficient to give a zk proof of the entire file and not of the > individual blocks which are transferred at each iteration? Also does it > make sense that you make partial payment per block instead of waiting for > the total file to arrive. It might be the case that the zk proof of the > total file is correct but then sender might cheat while sending individual > block. > > > > On Tue, Jan 21, 2020, 00:26 Matt Corallo <lf-lists at mattcorallo.com> > wrote: > > > > > Don’t and data in lighting payments unless you have to. It’s super > DoS-y and rude to your peers. If you’re just transferring a file, you can > use ZKCP to send an encrypted copy of the file with the encryption key > being the payment_preimage, making the whole thing one big atomic action. > > > > > > > On Jan 20, 2020, at 13:33, Subhra Mazumdar < > subhra.mazumdar1993 at gmail.com> wrote: > > > > > > > > > > > Sounds good. But how do I provide a correctness for the entire asset > to be transferred when I am already partitioning into several units (say > chunks of file ? ) So as an when the block of file is received then we have > to give a ZK proof "block x is part of File F". Is it how this should work ? > > > > > > > > On Mon, Jan 20, 2020 at 11:59 PM Matt Corallo < > lf-lists at mattcorallo.com> wrote: > > > > > > > > > Zk proofs are incredibly fast these days for small-ish programs. > They’re much too slow for a consensus system where every party needs to > download and validate them, but for relatively simple programs a two-party > system using them is very doable. > > > > > > > > > > > On Jan 20, 2020, at 13:23, Subhra Mazumdar < > subhra.mazumdar1993 at gmail.com> wrote: > > > > > > > > > > > > > > > > > But isn't it that the use of ZK proof will render the system > slow and hence defy the very purpose of lightning network which intends to > make things scalable as well as faster transaction ? > > > > > > > > > > > > On Mon, Jan 20, 2020 at 11:48 PM Matt Corallo < > lf-lists at mattcorallo.com> wrote: > > > > > > > > > > > > > That paper discusses it, but I don't think there was ever a > paper proper > > > > > > > on ZKCP. There are various discussions of it, though, if you > google. > > > > > > > Sadly this is common in this space - lots of great ideas where > no one > > > > > > > ever bothered to write academic-style papers about them (hence > why > > > > > > > academic papers around Bitcoin tend to miss nearly all > relevant context, > > > > > > > sadly). > > > > > > > > > > > > > > Matt > > > > > > > > > > > > > > On 1/20/20 6:10 PM, Subhra Mazumdar wrote: > > > > > > > > Are you referring to the paper Zero knowledge contingent > payment > > > > > > > > revisited ? I will look into the construction. Thanks for the > > > > > > > > information! :) > > > > > > > > > > > > > > > > On Mon, Jan 20, 2020, 23:31 Matt Corallo < > lf-lists at mattcorallo.com > > > > > > > > <mailto:lf-lists at mattcorallo.com>> wrote: > > > > > > > > > > > > > > > > On 11/9/19 4:31 AM, Takaya Imai wrote: > > > > > > > > > [What I do not describe] > > > > > > > > > * A way to detect that data is correct or not, namely > zero knowledge > > > > > > > > > proof process. > > > > > > > > > > > > > > > > Have you come across Zero Knowledge Contingent Payments? > Originally it > > > > > > > > was designed for on-chain applications but it slots > neatly into > > > > > > > > lightning as it only requires a method to lock funds to > a hash preimage. > > > > > > > > > > > > > > > > Matt > > > > > > > > _______________________________________________ > > > > > > > > Lightning-dev mailing list > > > > > > > > Lightning-dev at lists.linuxfoundation.org > > > > > > > > <mailto:Lightning-dev at lists.linuxfoundation.org> > > > > > > > > > https://www.learnbitcoin.com/archive/lists/lightning-dev > > > > > > > > > > > > > > > > > > > > -- > > > > > > Yours sincerely, > > > > > > Subhra Mazumdar. > > > > > > > > -- > > > > Yours sincerely, > > > > Subhra Mazumdar. > > >
Hey ZmnSCPxj,
On Tue, 21 Jan 2020 at 08:47, ZmnSCPxj via Lightning-dev < lightning-dev at lists.linuxfoundation.org> wrote:
Quoted text (22 lines)
> Good morning Subhra, > > Refer to this protocol instead of DLAS: > https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2019/proposal-lightning-pre-image-encryption-standard#m-ec7dbbc2 > In this protocol, an *encrypted* form of the *entire file* is sent. > Consequently, a *single* payment is made, where the payment preimage is > the decryption key. > Knowing an additional zk proof is necessary to show that the file is > indeed encrypted using the decryption key that is the preimage of the given > hash (the linked thread has details I believe). > > Relevantly, there is no need to consider blocks of a file when using the > linked protocol instead of DLAS. > Of course, a Zk-proof of some property of the entire file, that can be > understood by an end-user, may not be possible. > Likely, you might want to prove of a video file that a thumbnail of the > video file is extracted from a frame of the video, and show that thumbnail > to the end-user. > Looking at the *rest* of the frames of the video (after you have paid for > its decryption) may very reveal them to be frames of a video of Rick Astley > singing "Never Gonna Give You Up". >
I wanted to ask a simple question with regards to the NeverGonnaGiveYouUp problem. Let's say you use this technology for a specific use case subset of what has been proposed: the payer wants to exchange bitcoin (via LN) in exchange for some data. The data, in this case, was known by the payer at some point in the past, so the payer encrypted it with his own private key, and gave it to someone for backup purposes (after that, he gets a hash of the data, which she keeps, and deletes the data from her end). At some point in the future, when she wants to retrieve the data, the payee can only supply a bunch of bytes whose hash match with the hash that the payer has, therefore the NeverGonnaGiveYouUp problem can't happen here, am I right?
Thanks
Quoted text (108 lines)
> ! > > Regards, > ZmnSCPxj > > > So is it sufficient to give a zk proof of the entire file and not of the > individual blocks which are transferred at each iteration? Also does it > make sense that you make partial payment per block instead of waiting for > the total file to arrive. It might be the case that the zk proof of the > total file is correct but then sender might cheat while sending individual > block. > > > > On Tue, Jan 21, 2020, 00:26 Matt Corallo <lf-lists at mattcorallo.com> > wrote: > > > > > Don’t and data in lighting payments unless you have to. It’s super > DoS-y and rude to your peers. If you’re just transferring a file, you can > use ZKCP to send an encrypted copy of the file with the encryption key > being the payment_preimage, making the whole thing one big atomic action. > > > > > > > On Jan 20, 2020, at 13:33, Subhra Mazumdar < > subhra.mazumdar1993 at gmail.com> wrote: > > > > > > > > > > > Sounds good. But how do I provide a correctness for the entire asset > to be transferred when I am already partitioning into several units (say > chunks of file ? ) So as an when the block of file is received then we have > to give a ZK proof "block x is part of File F". Is it how this should work ? > > > > > > > > On Mon, Jan 20, 2020 at 11:59 PM Matt Corallo < > lf-lists at mattcorallo.com> wrote: > > > > > > > > > Zk proofs are incredibly fast these days for small-ish programs. > They’re much too slow for a consensus system where every party needs to > download and validate them, but for relatively simple programs a two-party > system using them is very doable. > > > > > > > > > > > On Jan 20, 2020, at 13:23, Subhra Mazumdar < > subhra.mazumdar1993 at gmail.com> wrote: > > > > > > > > > > > > > > > > > But isn't it that the use of ZK proof will render the system > slow and hence defy the very purpose of lightning network which intends to > make things scalable as well as faster transaction ? > > > > > > > > > > > > On Mon, Jan 20, 2020 at 11:48 PM Matt Corallo < > lf-lists at mattcorallo.com> wrote: > > > > > > > > > > > > > That paper discusses it, but I don't think there was ever a > paper proper > > > > > > > on ZKCP. There are various discussions of it, though, if you > google. > > > > > > > Sadly this is common in this space - lots of great ideas where > no one > > > > > > > ever bothered to write academic-style papers about them (hence > why > > > > > > > academic papers around Bitcoin tend to miss nearly all > relevant context, > > > > > > > sadly). > > > > > > > > > > > > > > Matt > > > > > > > > > > > > > > On 1/20/20 6:10 PM, Subhra Mazumdar wrote: > > > > > > > > Are you referring to the paper Zero knowledge contingent > payment > > > > > > > > revisited ? I will look into the construction. Thanks for the > > > > > > > > information! :) > > > > > > > > > > > > > > > > On Mon, Jan 20, 2020, 23:31 Matt Corallo < > lf-lists at mattcorallo.com > > > > > > > > <mailto:lf-lists at mattcorallo.com>> wrote: > > > > > > > > > > > > > > > > On 11/9/19 4:31 AM, Takaya Imai wrote: > > > > > > > > > [What I do not describe] > > > > > > > > > * A way to detect that data is correct or not, namely > zero knowledge > > > > > > > > > proof process. > > > > > > > > > > > > > > > > Have you come across Zero Knowledge Contingent Payments? > Originally it > > > > > > > > was designed for on-chain applications but it slots > neatly into > > > > > > > > lightning as it only requires a method to lock funds to > a hash preimage. > > > > > > > > > > > > > > > > Matt > > > > > > > > _______________________________________________ > > > > > > > > Lightning-dev mailing list > > > > > > > > Lightning-dev at lists.linuxfoundation.org > > > > > > > > <mailto:Lightning-dev at lists.linuxfoundation.org> > > > > > > > > > https://www.learnbitcoin.com/archive/lists/lightning-dev > > > > > > > > > > > > > > > > > > > > -- > > > > > > Yours sincerely, > > > > > > Subhra Mazumdar. > > > > > > > > -- > > > > Yours sincerely, > > > > Subhra Mazumdar. > > > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev >
Indeed. To go further, anything where the file can be proven correct under a zkSNARK (ie you can write a relatively simple program to do so) does not bear such an issue.
Quoted text (102 lines)
> On Jan 21, 2020, at 02:38, Andrés G. Aragoneses <knocte at gmail.com> wrote: > > > Hey ZmnSCPxj, > >> On Tue, 21 Jan 2020 at 08:47, ZmnSCPxj via Lightning-dev <lightning-dev at lists.linuxfoundation.org> wrote: >> Good morning Subhra, >> >> Refer to this protocol instead of DLAS: https://www.learnbitcoin.com/archive/lists/lightning-dev/t/2019/proposal-lightning-pre-image-encryption-standard#m-ec7dbbc2 >> In this protocol, an *encrypted* form of the *entire file* is sent. >> Consequently, a *single* payment is made, where the payment preimage is the decryption key. >> Knowing an additional zk proof is necessary to show that the file is indeed encrypted using the decryption key that is the preimage of the given hash (the linked thread has details I believe). >> >> Relevantly, there is no need to consider blocks of a file when using the linked protocol instead of DLAS. >> Of course, a Zk-proof of some property of the entire file, that can be understood by an end-user, may not be possible. >> Likely, you might want to prove of a video file that a thumbnail of the video file is extracted from a frame of the video, and show that thumbnail to the end-user. >> Looking at the *rest* of the frames of the video (after you have paid for its decryption) may very reveal them to be frames of a video of Rick Astley singing "Never Gonna Give You Up". > > I wanted to ask a simple question with regards to the NeverGonnaGiveYouUp problem. > Let's say you use this technology for a specific use case subset of what has been proposed: the payer wants to exchange bitcoin (via LN) in exchange for some data. The data, in this case, was known by the payer at some point in the past, so the payer encrypted it with his own private key, and gave it to someone for backup purposes (after that, he gets a hash of the data, which she keeps, and deletes the data from her end). At some point in the future, when she wants to retrieve the data, the payee can only supply a bunch of bytes whose hash match with the hash that the payer has, therefore the NeverGonnaGiveYouUp problem can't happen here, am I right? > > Thanks > > >> ! >> >> Regards, >> ZmnSCPxj >> >> > So is it sufficient to give a zk proof of the entire file and not of the individual blocks which are transferred at each iteration? Also does it make sense that you make partial payment per block instead of waiting for the total file to arrive. It might be the case that the zk proof of the total file is correct but then sender might cheat while sending individual block. >> > >> > On Tue, Jan 21, 2020, 00:26 Matt Corallo <lf-lists at mattcorallo.com> wrote: >> > >> > > Don’t and data in lighting payments unless you have to. It’s super DoS-y and rude to your peers. If you’re just transferring a file, you can use ZKCP to send an encrypted copy of the file with the encryption key being the payment_preimage, making the whole thing one big atomic action. >> > > >> > > > On Jan 20, 2020, at 13:33, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> wrote: >> > > >> > > > >> > > > Sounds good. But how do I provide a correctness for the entire asset to be transferred when I am already partitioning into several units (say chunks of file ? ) So as an when the block of file is received then we have to give a ZK proof "block x is part of File F". Is it how this should work ? >> > > > >> > > > On Mon, Jan 20, 2020 at 11:59 PM Matt Corallo <lf-lists at mattcorallo.com> wrote: >> > > > >> > > > > Zk proofs are incredibly fast these days for small-ish programs. They’re much too slow for a consensus system where every party needs to download and validate them, but for relatively simple programs a two-party system using them is very doable. >> > > > > >> > > > > > On Jan 20, 2020, at 13:23, Subhra Mazumdar <subhra.mazumdar1993 at gmail.com> wrote: >> > > > > >> > > > > > >> > > > > > But isn't it that the use of ZK proof will render the system slow and hence defy the very purpose of lightning network which intends to make things scalable as well as faster transaction ? >> > > > > > >> > > > > > On Mon, Jan 20, 2020 at 11:48 PM Matt Corallo <lf-lists at mattcorallo.com> wrote: >> > > > > > >> > > > > > > That paper discusses it, but I don't think there was ever a paper proper >> > > > > > > on ZKCP. There are various discussions of it, though, if you google. >> > > > > > > Sadly this is common in this space - lots of great ideas where no one >> > > > > > > ever bothered to write academic-style papers about them (hence why >> > > > > > > academic papers around Bitcoin tend to miss nearly all relevant context, >> > > > > > > sadly). >> > > > > > > >> > > > > > > Matt >> > > > > > > >> > > > > > > On 1/20/20 6:10 PM, Subhra Mazumdar wrote: >> > > > > > > > Are you referring to the paper Zero knowledge contingent payment >> > > > > > > > revisited ? I will look into the construction. Thanks for the >> > > > > > > > information! :) >> > > > > > > > >> > > > > > > > On Mon, Jan 20, 2020, 23:31 Matt Corallo <lf-lists at mattcorallo.com >> > > > > > > > <mailto:lf-lists at mattcorallo.com>> wrote: >> > > > > > > > >> > > > > > > > On 11/9/19 4:31 AM, Takaya Imai wrote: >> > > > > > > > > [What I do not describe] >> > > > > > > > > * A way to detect that data is correct or not, namely zero knowledge >> > > > > > > > > proof process. >> > > > > > > > >> > > > > > > > Have you come across Zero Knowledge Contingent Payments? Originally it >> > > > > > > > was designed for on-chain applications but it slots neatly into >> > > > > > > > lightning as it only requires a method to lock funds to a hash preimage. >> > > > > > > > >> > > > > > > > Matt >> > > > > > > > _______________________________________________ >> > > > > > > > Lightning-dev mailing list >> > > > > > > > Lightning-dev at lists.linuxfoundation.org >> > > > > > > > <mailto:Lightning-dev at lists.linuxfoundation.org> >> > > > > > > > https://www.learnbitcoin.com/archive/lists/lightning-dev >> > > > > > > > >> > > > > > >> > > > > > -- >> > > > > > Yours sincerely, >> > > > > > Subhra Mazumdar. >> > > > >> > > > -- >> > > > Yours sincerely, >> > > > Subhra Mazumdar. >> >> >> _______________________________________________ >> Lightning-dev mailing list >> Lightning-dev at lists.linuxfoundation.org >> https://www.learnbitcoin.com/archive/lists/lightning-dev > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev