Skip to content
LearnBitcoin

ResearchBitcoin Dev Archive lightning-dev list

Lightning modifications draft paper

8 messages, Jul 17 to 18, 2015. Started by Rusty Russell.

Nick ODell (3), Mark F (2), Rusty Russell, Joseph Poon, Peter Todd

Permalink First message in the Wayback Machine

Rusty Russell permalink original

Hi all,

        http://ozlabs.org/~rusty/ln-deploy-draft-01.pdf
        I haven't had time to proofread this properly, nor check the
script examples.  But wanted to post it before the weekend so you all
have something to chew on :)

Cheers, Rusty.

Joseph Poon in reply to Rusty Russell permalink original

On Fri, Jul 17, 2015 at 05:49:15PM +0930, Rusty Russell wrote:

Quoted text (1 line)
>         http://ozlabs.org/~rusty/ln-deploy-draft-01.pdf

Very cool!! The proposed construction with OP_CHECKLOCKTIMEVERIFY and OP_CHECKSEQUENCEVERIFY may make lightning be deployed *much* sooner. Rusty's idea is fantastic and goes very far in creating a usable way to really try out lightning on Bitcoin.

I'll have an update of my paper incorporating these changes, they're really significant.

(Current version, will incorporate the above changes very soon: http://lightning.network/lightning-network-paper-0.5.9.pdf )

Nick ODell in reply to Rusty Russell permalink original

I'm pretty sure that BIP62 is abandonded. At least, the PR based on it was never merged. BIP66 implements some of it, and rules 2-7 have been nonstandard for a while, but I don't think that rules 2-7 are enforced against new blocks.

On Fri, Jul 17, 2015 at 2:19 AM, Rusty Russell <rusty at rustcorp.com.au> wrote:

Quoted text (14 lines)
> Hi all,
>
>         http://ozlabs.org/~rusty/ln-deploy-draft-01.pdf
>
>         I haven't had time to proofread this properly, nor check the
> script examples.  But wanted to post it before the weekend so you all
> have something to chew on :)
>
> Cheers,
> Rusty.
> _______________________________________________
> Lightning-dev mailing list
> Lightning-dev at lists.linuxfoundation.org
> https://www.learnbitcoin.com/archive/lists/lightning-dev
Mark F in reply to Nick ODell permalink original

BIP62 is not in any way abandoned. It just takes time to implement such broad changes and to be assured of their safety. BIP66 rushed a subset of features that were necessary to close we pretty serious vulnerabilities (details of that are forthcoming soon now that it has been deployed). On Jul 18, 2015 08:15, "Nick ODell" <nickodell at gmail.com> wrote:

Quoted text (26 lines)
> I'm pretty sure that BIP62 is abandonded. At least, the PR based on it
> was never merged. BIP66 implements some of it, and rules 2-7 have been
> nonstandard for a while, but I don't think that rules 2-7 are enforced
> against new blocks.
>
> On Fri, Jul 17, 2015 at 2:19 AM, Rusty Russell <rusty at rustcorp.com.au>
> wrote:
> > Hi all,
> >
> >         http://ozlabs.org/~rusty/ln-deploy-draft-01.pdf
> >
> >         I haven't had time to proofread this properly, nor check the
> > script examples.  But wanted to post it before the weekend so you all
> > have something to chew on :)
> >
> > Cheers,
> > Rusty.
> > _______________________________________________
> > 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
>
Nick ODell in reply to Mark F permalink original

There doesn't seem to be any deployment timeline, and the BIP is incredibly out of date.

I agree that rules 2-7 are nonstandard, but I don't think they're applied to blocks.

Quoted text (1 line)
>(details of that are forthcoming soon now that it has been deployed).

I was under the impression that the changes in BIP66 were only prioritized because asking OpenSSL to verify DER encoding required building with a specific version of OpenSSL, not because of any security vulns.

On Sat, Jul 18, 2015 at 9:46 AM, Mark Friedenbach <mark at friedenbach.org> wrote:

Quoted text (32 lines)
> BIP62 is not in any way abandoned. It just takes time to implement such
> broad changes and to be assured of their safety. BIP66 rushed a subset of
> features that were necessary to close we pretty serious vulnerabilities
> (details of that are forthcoming soon now that it has been deployed).
>
> On Jul 18, 2015 08:15, "Nick ODell" <nickodell at gmail.com> wrote:
>>
>> I'm pretty sure that BIP62 is abandonded. At least, the PR based on it
>> was never merged. BIP66 implements some of it, and rules 2-7 have been
>> nonstandard for a while, but I don't think that rules 2-7 are enforced
>> against new blocks.
>>
>> On Fri, Jul 17, 2015 at 2:19 AM, Rusty Russell <rusty at rustcorp.com.au>
>> wrote:
>> > Hi all,
>> >
>> >         http://ozlabs.org/~rusty/ln-deploy-draft-01.pdf
>> >
>> >         I haven't had time to proofread this properly, nor check the
>> > script examples.  But wanted to post it before the weekend so you all
>> > have something to chew on :)
>> >
>> > Cheers,
>> > Rusty.
>> > _______________________________________________
>> > 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
Mark F in reply to Nick ODell permalink original

On Sat, Jul 18, 2015 at 9:19 AM, Nick ODell <nickodell at gmail.com> wrote:

Quoted text (2 lines)
> There doesn't seem to be any deployment timeline.
>

Welcome to bitcoin development.

At the moment we have only the capability to push out one soft fork vote at a time. The uncontroversial aspects of BIP62 were rushed out as BIP66 in response to an undisclosed vulnerability, as mentioned. I believe there is consensus now that BIP65: CHECKLOCKTIMEVERIFY has higher deployment priority, so it will be next. There is no deployment timeline for BIP62 because it is a low priority in this soft-fork logjam.

As to BIP62 being out of date, can you point to specific things? They'll get fixed.

Peter Todd in reply to Mark F permalink original

On Sat, Jul 18, 2015 at 09:25:54AM -0700, Mark Friedenbach wrote:

Quoted text (13 lines)
> On Sat, Jul 18, 2015 at 9:19 AM, Nick ODell <nickodell at gmail.com> wrote:
>
> > There doesn't seem to be any deployment timeline.
> >
>
> Welcome to bitcoin development.
>
> At the moment we have only the capability to push out one soft fork vote at
> a time. The uncontroversial aspects of BIP62 were rushed out as BIP66 in
> response to an undisclosed vulnerability, as mentioned. I believe there is
> consensus now that BIP65: CHECKLOCKTIMEVERIFY has higher deployment
> priority, so it will be next. There is no deployment timeline for BIP62
> because it is a low priority in this soft-fork logjam.

A slight clarification: we do have the capability to push out more than one soft-fork *upgrade signaling* at a time, but this is very far from a vote because if miners decide not to upgrade there is no easy way to recover. The nVersion bits mechanism I co-authored with Pieter Wuille and Gregory Maxwell is closer to a vote because a soft-fork failing to go through has a clear and non-coercive outcome.

For instance, if my own BIP65 had been accepted into v0.11.0 miners who had upgraded to v0.10.x/0.9.5 would have been signaling that they supported BIP66, while sumultaneously miners running v0.11.0 would be signalling that they supported both BIP66 and BIP65. As adoption increased BIP66 would trigger first, followed by BIP65. (theoretically both could trigger on the same block too)

The problem is if miners had decided they didn't like BIP66 but wanted to implement BIP65 there would be no mechanism to do that - it depends on the details, but from the point of view of at least some nodes you likely would have hard-forked Bitcoin in the process of stopping the failed soft-fork.

Nick ODell in reply to Peter Todd permalink original
Quoted text (1 line)
>As to BIP62 being out of date, can you point to specific things? They'll get fixed.

Just one thing, actually. The "Block validity" section references version 3 blocks, but those are already used by the BIP66 softfork.

On Sat, Jul 18, 2015 at 10:50 AM, Peter Todd <pete at petertodd.org> wrote:

Quoted text (38 lines)
> On Sat, Jul 18, 2015 at 09:25:54AM -0700, Mark Friedenbach wrote:
>> On Sat, Jul 18, 2015 at 9:19 AM, Nick ODell <nickodell at gmail.com> wrote:
>>
>> > There doesn't seem to be any deployment timeline.
>> >
>>
>> Welcome to bitcoin development.
>>
>> At the moment we have only the capability to push out one soft fork vote at
>> a time. The uncontroversial aspects of BIP62 were rushed out as BIP66 in
>> response to an undisclosed vulnerability, as mentioned. I believe there is
>> consensus now that BIP65: CHECKLOCKTIMEVERIFY has higher deployment
>> priority, so it will be next. There is no deployment timeline for BIP62
>> because it is a low priority in this soft-fork logjam.
>
> A slight clarification: we do have the capability to push out more than
> one soft-fork *upgrade signaling* at a time, but this is very far from a
> vote because if miners decide not to upgrade there is no easy way to
> recover. The nVersion bits mechanism I co-authored with Pieter Wuille
> and Gregory Maxwell is closer to a vote because a soft-fork failing to
> go through has a clear and non-coercive outcome.
>
> For instance, if my own BIP65 had been accepted into v0.11.0 miners who
> had upgraded to v0.10.x/0.9.5 would have been signaling that they
> supported BIP66, while sumultaneously miners running v0.11.0 would be
> signalling that they supported both BIP66 and BIP65. As adoption
> increased BIP66 would trigger first, followed by BIP65. (theoretically
> both could trigger on the same block too)
>
> The problem is if miners had decided they didn't like BIP66 but wanted
> to implement BIP65 there would be no mechanism to do that - it depends
> on the details, but from the point of view of at least some nodes you
> likely would have hard-forked Bitcoin in the process of stopping the
> failed soft-fork.
>
> --
> 'peter'[:-1]@petertodd.org
> 00000000000000000b675c4d825a10c278b8d63ee4df90a19393f3b6498fd073