Research/Bitcoin Dev Archive / lightning-dev list
Single-funder anchor model?
5 messages, Jul 27 to 28, 2015. Started by Rusty Russell.
Rusty Russell (3), Joseph Poon, Eric Lombrozo
Hi all,
This mentioned on the weekend via #lightning-dev (sorry, still not archived) from go1111111:
https://bitcointalk.org/index.php?topic=1134319.new#new
Basically it points out that a single-funder anchor can be done without requiring new sighash ops nor losing outsourcability.
The other end can transfer funds (if it wants to balance the channel) in two obvious ways. The first is to use the lightning network as normal (via some other channel it already has). The second (from AJ) is to use the atomic cross-blockchain idea[1] to atomically transfer funds in from native bitcoin.
Pros:
1. Fairly simple.
2. Outsourcability.
Cons:
1. Asymmetric creation risk
2. Wants cross-chain atomic txs sooner
3. Takes twice the time to get a full two-way channel
The asymmetric risk is as much a feature as a problem: with the dual-anchor proposal, either side could abort with no penalty and make the other side wait for the escape timeout anyway.
We've handwaved over the incentives for channel creation so far; they're tied with routing, and not immediately clear to me. But it doesn't seem unreasonable that if you connect to a hub, you front the funds.
Thoughts? Rusty.
[1] https://bitcointalk.org/index.php?topic=1036208.0 and discussed earlier on the list[2] [2] Still agitating to have those early archives merged into the lf ones...
Rusty Russell <rusty at rustcorp.com.au> writes:
Quoted text (1 line)
> 3. Takes twice the time to get a full two-way channel
This is wrong[1]; go1111111 points out that the atomic swap tx can hit the bitcoin blockchain about the same time as the anchor tx.
Cheers, Rusty. [1] https://bitcointalk.org/index.php?topic=1134319.msg11969780#msg11969780
On Mon, Jul 27, 2015 at 11:58:12AM +0930, Rusty Russell wrote:
Quoted text (3 lines)
> The asymmetric risk is as much a feature as a problem: with the > dual-anchor proposal, either side could abort with no penalty and make > the other side wait for the escape timeout anyway.
Cool, I think this works.
Yeah non-cooperation risks in this model aren't that big of a deal, because the channel is going to be closed out anyway if they're not cooperative -- they could always refuse to route payments, and then everyone's going to get their money back.
Quoted text (3 lines)
> We've handwaved over the incentives for channel creation so far; they're > tied with routing, and not immediately clear to me. But it doesn't seem > unreasonable that if you connect to a hub, you front the funds.
Yeah, there's likely some weird asymmetric economic incentive things going on. If both channels are established with the same person, it should be fairly clean, though. I think there will probably be some measure of trust/reputation involved with pre-payment of the time-value for the channel (shorter with OP_CSV, but still non-zero).
OP_CSV still requires BIP 62, though. It's possible to construct a model with OP_CLTV without BIP 62 (described in a post earlier today) using single-funder with some OP_CLTV'd output which returns the full balance to the original funder at a date very far in the future after the expiration of all Commitments and its dependent outputs.
Joseph Poon <joseph at lightning.network> writes:
Quoted text (5 lines)
> OP_CSV still requires BIP 62, though. It's possible to construct a model > with OP_CLTV without BIP 62 (described in a post earlier today) using > single-funder with some OP_CLTV'd output which returns the full balance > to the original funder at a date very far in the future after the > expiration of all Commitments and its dependent outputs.
Yeah, I'm happy at this stage assuming BIP62. There don't seem any objections to it, just not huge motivation.
Nice to know we have a backup if that proves overly optimistic :)
Cheers, Rusty.
I don’t really think there’s a lack of motivation.
The unfortunate situation is that soft forks are backlogged…and the entire soft fork process is undergoing some pretty significant changes. There were already some pretty major concerns about it. The version bits BIP (https://gist.github.com/sipa/bf69659f43e763540550 <https://gist.github.com/sipa/bf69659f43e763540550>) which would allow multiple concurrent soft forks is still under works. Then the BIP66 fork brought to light some more problems with the process. And then on top of all that we have this block size hard fork circus…
Quoted text (20 lines)
> On Jul 27, 2015, at 7:00 PM, Rusty Russell <rusty at rustcorp.com.au> wrote: > > Joseph Poon <joseph at lightning.network> writes: >> OP_CSV still requires BIP 62, though. It's possible to construct a model >> with OP_CLTV without BIP 62 (described in a post earlier today) using >> single-funder with some OP_CLTV'd output which returns the full balance >> to the original funder at a date very far in the future after the >> expiration of all Commitments and its dependent outputs. > > Yeah, I'm happy at this stage assuming BIP62. There don't seem any > objections to it, just not huge motivation. > > Nice to know we have a backup if that proves overly optimistic :) > > Cheers, > Rusty. > _______________________________________________ > Lightning-dev mailing list > Lightning-dev at lists.linuxfoundation.org > https://www.learnbitcoin.com/archive/lists/lightning-dev