Research/Bitcoin Dev Archive / lightning-dev list
Removal of proposal to make CSV delay symmetric
6 messages, Jul 17 to 24, 2019. Started by Rusty Russell.
Rusty Russell (3), Pierre (3)
Hi all,
In Adelaide we proposed that CSV delays be symmetric; that the to-self output would be delayed to avoid weird "no, you close!" games.
Unfortunately, Roasbeef points out that this undermines the great strength of the option_static_remotekey, which allows a disaster-recovery scenario to easily discover any unknown unilateral closes using only a master seed. Turns out, this "I deleted everything but I kept my seed!" is a real thing.
We could still use the max of the two sides' CSV, but that's already a choice that sides can make (if accepting, simply offer the same value, and if opening, error and retry if their accept contains a larger value).
So I think this proposal should be abandoned.
Thoughts? Rusty.
Hi Rusty,
How would bruteforcing on the CSV delay be different from a BIP32 wallet with look ahead keys? Especially given that we could try with most probable values first.
Cheers,
Pierre
Pierre <pm+lists at acinq.fr> writes:
Quoted text (5 lines)
> Hi Rusty, > > How would bruteforcing on the CSV delay be different from a BIP32 > wallet with look ahead keys? Especially given that we could try with > most probable values first.
It's a big multiplier, given that CSV can be specified by the counterparty. If you accept up to 1024 and offer 144, that's 880 variants to look for, per key.
It also can't be done with a normal bitcoin wallet, which is unfortunate too.
Cheers, Rusty.
Quoted text (7 lines)
> > How would bruteforcing on the CSV delay be different from a BIP32 > > wallet with look ahead keys? Especially given that we could try with > > most probable values first. > > It's a big multiplier, given that CSV can be specified by the > counterparty. If you accept up to 1024 and offer 144, that's 880 > variants to look for, per key.
We could restrict CSV delays to be e.g. multiple of 144 between 144 and 2016, that would only be 14 variants.
Quoted text (2 lines)
> It also can't be done with a normal bitcoin wallet, which is unfortunate > too.
Right, but it wouldn't work for local commitments.
I feel like alignment of incentives should prevail here. Funds are still recoverable with just the seed, which is a huge improvement vs what is currently the case.
Pierre <pm+lists at acinq.fr> writes:
Quoted text (10 lines)
>> > How would bruteforcing on the CSV delay be different from a BIP32 >> > wallet with look ahead keys? Especially given that we could try with >> > most probable values first. >> >> It's a big multiplier, given that CSV can be specified by the >> counterparty. If you accept up to 1024 and offer 144, that's 880 >> variants to look for, per key. > > We could restrict CSV delays to be e.g. multiple of 144 between 144 > and 2016, that would only be 14 variants.
Well one of 6, 36, 144, 432 or 1008 is probably more than enough choice.
Quoted text (8 lines)
>> It also can't be done with a normal bitcoin wallet, which is unfortunate >> too. > > Right, but it wouldn't work for local commitments. > > I feel like alignment of incentives should prevail here. Funds are > still recoverable with just the seed, which is a huge improvement vs > what is currently the case.
Most of the time, local commitments are not in play. But if your node drops out, remote commitments definitely will be.
I think being able to rescue some funds from a pre-lightning wallet is a nice thing to have at this stage. In five years, it might not be as useful, though.
Cheers, Rusty.
Quoted text (1 line)
> Well one of 6, 36, 144, 432 or 1008 is probably more than enough choice.
Indeed, that seems entirely reasonable.
Quoted text (2 lines)
> Most of the time, local commitments are not in play. But if your node > drops out, remote commitments definitely will be.
That's true, although in my experience, the refund delay after a local commitment is often a period when the user may decide to do unexpected things, because "something went wrong and a reinstall may fix it".
Quoted text (2 lines)
> I think being able to rescue some funds from a pre-lightning wallet is a > nice thing to have at this stage.
Right, but it does introduce some uncertainty: depending on the exact nature of the close, something may or may not appear in the user's wallet. I think that would have been the correct approach for BOLT 1, but now I'd favor a well designed recovery tool. Since the Electrum team is working on LN, maybe we could get them to support this simple heuristic?