Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

An Argument For Single-Asset Lightning Network

6 messages, Jan 3 to 4, 2019. Started by Lawrence Deacon.

Lawrence Deacon (3), ZmnSCPxj (3)

Permalink First message in the Wayback Machine

Lawrence Deacon permalink original

Do cross-asset lightning nodes do not offer premium-free American call options? ============================================================= I would argue that cross-asset lightning nodes do not offer premium-free American call options for the following reasons.

Say I wanted to set up to purchase 1 WJT for P bitcoins at time t < T where t is the time I close the contract and T is the expiry time.

In order to set up the contract I must pay P bitcoins to the contract, incurring an opportunity cost of x_i1. Assuming we set up the contract at time t_0=0, this will be equivalent to the money I could have earned by loaning the currency at interest during the period t.

I must also pay the issuer of the contract a premium x_p (in the case where I am both recipient and issuer, see further down).

If S(t) is the spot price at time t and K = S(t) - P then the payoff for me is as follows:

S(t) > P: K - x_p - x_i1 S(t) < P: -x_i1 - x_p

If x_i2 is the opportunity cost of paying 1 WJT to the contract for time t then the payoff for the other party (issuer) is as follows:

S(t) > P: -K + x_p - x_i2 S(t) < P: x_p - x_i2

If x_p = 0 then the issuer is guaranteed a loss. Therefore no rational contract issuer will issue an American call option for free.

In the case where I am both recipient and issuer of the contract, to get the payoff we add the above payoffs:

S(t) > P: -x_i1 - x_i2 S(t) < P: -x_i1 - x_i2

This is a guaranteed loss.

Conclusion ======== Lightning nodes do not offer premium-free American call options because whether or not the contract and issuer are the same person, setting up a premium free American call option using a HTLC guarantees a loss for one or both parties. Even if the opportunity costs were 0, then setting up a contract with myself would have a guaranteed 0 payoff.

ZmnSCPxj in reply to Lawrence Deacon permalink original

Good morning Lawrence,

While true, on Lightning, interest earnings are ***tiny*** enough that the premium "paid" in this manner is minimal. Increase in alternative interest earnings for Bitcoin on non-Lightning alternatives would also cut down the available liquidity on Lightning and increase Lightning fees.

Further, the current nature of cryptocurrency assets is highly speculative and large swings in exchange rates in short time frames are typical. Thus the premium paid is minimal compared to the upside of the speculative call option.

Finally, the massive problem here is that the exchange, which enables cross-asset swap, is itself obligated to lock the asset to be called in the contract. In particular, the "premium" is ***not paid*** to the exchange node; instead, the "premium", such as it is, is split between both the exchange and the user of the American Call Option, and is paid as a temporary decrease in the supply of both assets to the rest of the economy. The galling part is that it violates the principle of "initiator pays", since the exchange, which passively advertises its service, does not initiate the creation of the American Call Option yet is forced to pay for its existence by locking its own assets.

Given this, the logical consequence is that on-Lightning exchanges will increase, probably greatly, their bid/ask spreads on Lightning compared to custodial exchanges, increasing market friction on cross-asset payments on Lightning. This means that rational payees may find it more lucrative to accept the more popular asset, identify a "trustworthy" custodial exchange, and use the lower bid/ask spread on such a trust-based exchange to get more of their desired target asset compared to being paid on Lightning.

The end result is the Lightning network primarily settling on the most popular of the assets, i.e. Bitcoin.

Regards, ZmnSCPxj

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, January 3, 2019 8:07 PM, Lawrence Deacon <lawrence at commerceblock.com> wrote:

Quoted text (34 lines)
> Do cross-asset lightning nodes do not offer premium-free American call options?
>
> =============================================================
>
> I would argue that cross-asset lightning nodes do not offer premium-free American call options for the following reasons.
>
> Say I wanted to set up to purchase 1 WJT for P bitcoins at time t < T where t is the time I close the contract and T is the expiry time.
>
> In order to set up the contract I must pay P bitcoins to the contract, incurring an opportunity cost of x_i1. Assuming we set up the contract at time t_0=0, this will be equivalent to the money I could have earned by loaning the currency at interest during the period t.
>
> I must also pay the issuer of the contract a premium x_p (in the case where I am both recipient and issuer, see further down).
>
> If S(t) is the spot price at time t and K = S(t) - P then the payoff for me is as follows:
>
> S(t) > P:        K  - x_p  -  x_i1
> S(t) < P:        -x_i1 - x_p
>
> If x_i2 is the opportunity cost of paying 1 WJT to the contract for time t then the payoff for the other party (issuer) is as follows:
>
> S(t) > P:        -K + x_p - x_i2
> S(t) < P:         x_p  - x_i2
>
> If x_p = 0 then the issuer is guaranteed a loss. Therefore no rational contract issuer will issue an American call option for free.
>
> In the case where I am both recipient and issuer of the contract, to get the payoff we add the above payoffs:
>
> S(t) > P:         -x_i1 - x_i2
> S(t) < P:         -x_i1 - x_i2
>
> This is a guaranteed loss.
>
> Conclusion
> ========
> Lightning nodes do not offer premium-free American call options because whether or not the contract and issuer are the same person, setting up a premium free American call option using a HTLC guarantees a loss for one or both parties. Even if the opportunity costs were 0, then setting up a contract with myself would have a guaranteed 0 payoff.
ZmnSCPxj in reply to Lawrence Deacon permalink original

Good morning Lawrence,

On re-reading your argument, no, you have misunderstood massively.

The two HTLCs together form a *single* American Call Option, issued by the exchange to the initiator of the "payment".

It is not the initiator somehow issuing an American Call Option to itself by routing a payment to itself. It is the initiator forcing the exchange to give it the equivalent of an American Call Option by routing a payment to itself. In particular, the cost of locking the WJT asset is paid *by the exchange*, not the initiator of the contract.

Quoted text (1 line)
> If x_p = 0 then the issuer is guaranteed a loss. Therefore no rational contract issuer will issue an American call option for free.

This implies that the nobody will act as an exchange (since it could be coerced into issuing an American Call Option for free), hence the argument that Lightning Network will always have a single asset. Note that this is one trivial way for your conclusion:

Quoted text (1 line)
>lightning nodes do not offer premium-free American call options

to be true, i.e. there will be no cross-asset nodes. Regards, ZmnSCPxj

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, January 3, 2019 8:07 PM, Lawrence Deacon <lawrence at commerceblock.com> wrote:

Quoted text (34 lines)
> Do cross-asset lightning nodes do not offer premium-free American call options?
>
> =============================================================
>
> I would argue that cross-asset lightning nodes do not offer premium-free American call options for the following reasons.
>
> Say I wanted to set up to purchase 1 WJT for P bitcoins at time t < T where t is the time I close the contract and T is the expiry time.
>
> In order to set up the contract I must pay P bitcoins to the contract, incurring an opportunity cost of x_i1. Assuming we set up the contract at time t_0=0, this will be equivalent to the money I could have earned by loaning the currency at interest during the period t.
>
> I must also pay the issuer of the contract a premium x_p (in the case where I am both recipient and issuer, see further down).
>
> If S(t) is the spot price at time t and K = S(t) - P then the payoff for me is as follows:
>
> S(t) > P:        K  - x_p  -  x_i1
> S(t) < P:        -x_i1 - x_p
>
> If x_i2 is the opportunity cost of paying 1 WJT to the contract for time t then the payoff for the other party (issuer) is as follows:
>
> S(t) > P:        -K + x_p - x_i2
> S(t) < P:         x_p  - x_i2
>
> If x_p = 0 then the issuer is guaranteed a loss. Therefore no rational contract issuer will issue an American call option for free.
>
> In the case where I am both recipient and issuer of the contract, to get the payoff we add the above payoffs:
>
> S(t) > P:         -x_i1 - x_i2
> S(t) < P:         -x_i1 - x_i2
>
> This is a guaranteed loss.
>
> Conclusion
> ========
> Lightning nodes do not offer premium-free American call options because whether or not the contract and issuer are the same person, setting up a premium free American call option using a HTLC guarantees a loss for one or both parties. Even if the opportunity costs were 0, then setting up a contract with myself would have a guaranteed 0 payoff.
Lawrence Deacon in reply to ZmnSCPxj permalink original

Good morning,

Quoted text (6 lines)
> On 3 Jan 2019, at 13:04, ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote:
>
> Good morning Lawrence,
>
> While true, on Lightning, interest earnings are ***tiny*** enough that the premium "paid" in this manner is minimal.
> Increase in alternative interest earnings for Bitcoin on non-Lightning alternatives would also cut down the available liquidity on Lightning and increase Lightning fees.

If the contract issuer and recipient are different people, the issuer would charge an option price or premium, x_p, which would depend on volatility.

If the issuer and recipient are the same person, they are guaranteed a loss.

Quoted text (3 lines)
>
> Further, the current nature of cryptocurrency assets is highly speculative and large swings in exchange rates in short time frames are typical.
> Thus the premium paid is minimal compared to the upside of the speculative call option.

This would be reflected in the premium calculated by the contract issuer; x_p increases with volatility.

Quoted text (5 lines)
>
> Finally, the massive problem here is that the exchange, which enables cross-asset swap, is itself obligated to lock the asset to be called in the contract.
> In particular, the "premium" is ***not paid*** to the exchange node; instead, the "premium", such as it is, is split between both the exchange and the user of the American Call Option, and is paid as a temporary decrease in the supply of both assets to the rest of the economy.
> The galling part is that it violates the principle of "initiator pays", since the exchange, which passively advertises its service, does not initiate the creation of the American Call Option yet is forced to pay for its existence by locking its own assets.
>

The initiator pays an opportunity cost by depositing funds into the exchange.

Quoted text (49 lines)
> Given this, the logical consequence is that on-Lightning exchanges will increase, probably greatly, their bid/ask spreads on Lightning compared to custodial exchanges, increasing market friction on cross-asset payments on Lightning.
> This means that rational payees may find it more lucrative to accept the more popular asset, identify a "trustworthy" custodial exchange, and use the lower bid/ask spread on such a trust-based exchange to get more of their desired target asset compared to being paid on Lightning.
>
> The end result is the Lightning network primarily settling on the most popular of the assets, i.e. Bitcoin.
>
> Regards,
> ZmnSCPxj
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Thursday, January 3, 2019 8:07 PM, Lawrence Deacon <lawrence at commerceblock.com> wrote:
>
>> Do cross-asset lightning nodes do not offer premium-free American call options?
>>
>> =============================================================
>>
>> I would argue that cross-asset lightning nodes do not offer premium-free American call options for the following reasons.
>>
>> Say I wanted to set up to purchase 1 WJT for P bitcoins at time t < T where t is the time I close the contract and T is the expiry time.
>>
>> In order to set up the contract I must pay P bitcoins to the contract, incurring an opportunity cost of x_i1. Assuming we set up the contract at time t_0=0, this will be equivalent to the money I could have earned by loaning the currency at interest during the period t.
>>
>> I must also pay the issuer of the contract a premium x_p (in the case where I am both recipient and issuer, see further down).
>>
>> If S(t) is the spot price at time t and K = S(t) - P then the payoff for me is as follows:
>>
>> S(t) > P:        K  - x_p  -  x_i1
>> S(t) < P:        -x_i1 - x_p
>>
>> If x_i2 is the opportunity cost of paying 1 WJT to the contract for time t then the payoff for the other party (issuer) is as follows:
>>
>> S(t) > P:        -K + x_p - x_i2
>> S(t) < P:         x_p  - x_i2
>>
>> If x_p = 0 then the issuer is guaranteed a loss. Therefore no rational contract issuer will issue an American call option for free.
>>
>> In the case where I am both recipient and issuer of the contract, to get the payoff we add the above payoffs:
>>
>> S(t) > P:         -x_i1 - x_i2
>> S(t) < P:         -x_i1 - x_i2
>>
>> This is a guaranteed loss.
>>
>> Conclusion
>> ========
>> Lightning nodes do not offer premium-free American call options because whether or not the contract and issuer are the same person, setting up a premium free American call option using a HTLC guarantees a loss for one or both parties. Even if the opportunity costs were 0, then setting up a contract with myself would have a guaranteed 0 payoff.
>
>
Lawrence Deacon in reply to ZmnSCPxj permalink original
Quoted text (12 lines)
> On 3 Jan 2019, at 13:24, ZmnSCPxj <ZmnSCPxj at protonmail.com> wrote:
>
> Good morning Lawrence,
>
> On re-reading your argument, no, you have misunderstood massively.
>
> The two HTLCs together form a *single* American Call Option, issued by the exchange to the initiator of the "payment".
>
> It is not the initiator somehow issuing an American Call Option to itself by routing a payment to itself.
> It is the initiator forcing the exchange to give it the equivalent of an American Call Option by routing a payment to itself.
> In particular, the cost of locking the WJT asset is paid *by the exchange*, not the initiator of the contract.
>

The initiator of the contract must deposit 1 WJT into the exchange before the exchange will create the contract. Therefore the opportunity costs are borne by the initiator.

Quoted text (53 lines)
>> If x_p = 0 then the issuer is guaranteed a loss. Therefore no rational contract issuer will issue an American call option for free.
>
> This implies that the nobody will act as an exchange (since it could be coerced into issuing an American Call Option for free), hence the argument that Lightning Network will always have a single asset.
> Note that this is one trivial way for your conclusion:
>
>> lightning nodes do not offer premium-free American call options
>
> to be true, i.e. there will be no cross-asset nodes.
> Regards,
> ZmnSCPxj
>
>
> Sent with ProtonMail Secure Email.
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Thursday, January 3, 2019 8:07 PM, Lawrence Deacon <lawrence at commerceblock.com> wrote:
>
>> Do cross-asset lightning nodes do not offer premium-free American call options?
>>
>> =============================================================
>>
>> I would argue that cross-asset lightning nodes do not offer premium-free American call options for the following reasons.
>>
>> Say I wanted to set up to purchase 1 WJT for P bitcoins at time t < T where t is the time I close the contract and T is the expiry time.
>>
>> In order to set up the contract I must pay P bitcoins to the contract, incurring an opportunity cost of x_i1. Assuming we set up the contract at time t_0=0, this will be equivalent to the money I could have earned by loaning the currency at interest during the period t.
>>
>> I must also pay the issuer of the contract a premium x_p (in the case where I am both recipient and issuer, see further down).
>>
>> If S(t) is the spot price at time t and K = S(t) - P then the payoff for me is as follows:
>>
>> S(t) > P:        K  - x_p  -  x_i1
>> S(t) < P:        -x_i1 - x_p
>>
>> If x_i2 is the opportunity cost of paying 1 WJT to the contract for time t then the payoff for the other party (issuer) is as follows:
>>
>> S(t) > P:        -K + x_p - x_i2
>> S(t) < P:         x_p  - x_i2
>>
>> If x_p = 0 then the issuer is guaranteed a loss. Therefore no rational contract issuer will issue an American call option for free.
>>
>> In the case where I am both recipient and issuer of the contract, to get the payoff we add the above payoffs:
>>
>> S(t) > P:         -x_i1 - x_i2
>> S(t) < P:         -x_i1 - x_i2
>>
>> This is a guaranteed loss.
>>
>> Conclusion
>> ========
>> Lightning nodes do not offer premium-free American call options because whether or not the contract and issuer are the same person, setting up a premium free American call option using a HTLC guarantees a loss for one or both parties. Even if the opportunity costs were 0, then setting up a contract with myself would have a guaranteed 0 payoff.
>
>
ZmnSCPxj in reply to Lawrence Deacon permalink original

Good morning Lawrence,

Quoted text (7 lines)
> > On re-reading your argument, no, you have misunderstood massively.
> > The two HTLCs together form a single American Call Option, issued by the exchange to the initiator of the "payment".
> > It is not the initiator somehow issuing an American Call Option to itself by routing a payment to itself.
> > It is the initiator forcing the exchange to give it the equivalent of an American Call Option by routing a payment to itself.
> > In particular, the cost of locking the WJT asset is paid by the exchange, not the initiator of the contract.
>
> The initiator of the contract must deposit 1 WJT into the exchange before the exchange will create the contract. Therefore the opportunity costs are borne by the initiator.

You still have not understood.

We are discussing here a non-custodial exchange that acts as a Lightning Node on both BTC and WJT networks.

Suppose I know of such a non-custodial exchange. I create a BTC channel to this. Then I create a WJT channel.

In both cases, yes, I have to lock my assets into the channels created (unless we now have dual-funded channels and I convince the exchange node to fund the WJT channel).

What I do then is to send out via the WJT channel to any WJT-accepting merchant and get something in value equivalent to the WJT I send out. It can be something as trivial as a submarine swap, where I get ***onchain WJT*** by paying my ***offchain WJT*** over Lightning.

In this way, the WJT in the channel is ***no longer mine***, and given a fungible WJT asset then a submarine swap means I have reacquired the WJT I put in the channel in the first place; it is now available to me onchain to dispose of as I wish. If the WJT in the channel is locked up in an HTLC, ***I am not paying the opportunity costs for locking WJT***. It is the exchange which pays the opportunity cost since I have already paid the WJT to the exchange for a separate "unrelated" payment.

Afterwards, I can coerce the exchange to issue me an American Call Option by routing a BTC payment from myself to a WJT payment to myself. Since the CLTV will be a future time and date, I can always delay failing or accepting the incoming HTLC until just before the indicated locktime.

All your analysis means is precisely that nobody will rationally act as a Lightning node swap exchange, since being an exchange implicitly means you are offering American Call Options that are premium-free. If there are no Lightning node swap exchanges, then cross-asset swaps over Lightning cannot be done: nobody will enable the swap. Hence the conclusion: Lightning Network will remain single asset.

Regards, ZmnSCPxj