<div dir="ltr">Thanks for starting that discussion.<br><br>In my opinion, what we're really trying to address here are the two following<br>points (at least from the point of view of someone who works on the spec and<br>an implementation):<br><br>- Implementers get frustrated when they've worked on something that they think<br>is useful and they can't get it into the BOLTs (the spec PR isn't reviewed,<br>it progresses too slowly or there isn't enough agreement to merge it)<br>- Implementers expect other implementers to specify the optional features they<br>ship: we don't want to have to reverse-engineer a sub-protocol when users<br>want our implementation to provide support for feature XXX<br><br>Note that these are two very different concerns.<br><br>bLIPs/SPARKS/BIPs clearly address the second point, which is good.<br>But they don't address the first point at all, they instead work around it.<br>To be fair, I don't think we can completely address that first point: properly<br>reviewing spec proposals takes a lot of effort and accepting complex changes<br>to the BOLTs shouldn't be done lightly.<br><br>I am mostly in favor of this solution, but I want to highlight that it isn't<br>only rainbows and unicorns: it will add fragmentation to the network, it will<br>add maintenance costs and backwards-compatibility issues, many bLIPs will be<br>sub-optimal solutions to the problem they try to solve and some bLIPs will be<br>simply insecure and may put users' funds at risk (L2 protocols are hard and have<br>subtle issues that can be easily missed). On the other hand, it allows for real<br>world experimentation and iteration, and it's easier to amend a bLIP than the<br>BOLTs.<br><br>On the nuts-and-bolts (see the pun?) side, bLIPs cannot embrace a fully bazaar<br>style of evolution. Most of them will need:<br><br>- to assign feature bit(s)<br>- to insert new tlv fields in existing messages<br>- to create new messages<br><br>We can't have collisions on any of these three things. bLIP XXX cannot use the<br>same tlv types as bLIP YYY otherwise we're creating network incompatibilities.<br>So they really need to be centralized, and we need a process to assign these<br>and ensure they don't collide. It's not a hard problem, but we need to be clear<br>about the process around those.<br><br>Regarding the details of where they live, I don't have a strong opinion, but I<br>think they must be easy to find and browse, and I think it's easier for readers<br>if they're inside the spec repository. We already have PRs that use a dedicated<br>"proposals" folder (e.g. [1], [2]).<br><br>Cheers,<br>Bastien<br><br>[1] <a href="https://github.com/lightningnetwork/lightning-rfc/pull/829">https://github.com/lightningnetwork/lightning-rfc/pull/829</a><br>[2] <a href="https://github.com/lightningnetwork/lightning-rfc/pull/854">https://github.com/lightningnetwork/lightning-rfc/pull/854</a></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 1 juil. 2021 à 02:31, Ariel Luaces <<a href="mailto:arielluaces@gmail.com">arielluaces@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">BIPs are already the Bazaar style of evolution that simultaneously<br>
allows flexibility and coordination/interoperability (since anyone can<br>
create a BIP and they create an environment of discussion).<br>
<br>
BOLTs are essentially one big BIP in the sense that they started as a<br>
place for discussion but are now more rigid. BOLTs must be followed<br>
strictly to ensure a node is interoperable with the network. And BOLTs<br>
should be rigid, as rigid as any widely used BIP like 32 for example.<br>
Even though BOLTs were flexible when being drafted their purpose has<br>
changed from descriptive to prescriptive.<br>
Any alternatives, or optional features should be extracted out of<br>
BOLTs, written as BIPs. The BIP should then reference the BOLT and the<br>
required flags set, messages sent, or alterations made to signal that<br>
the BIP's feature is enabled.<br>
<br>
A BOLT may at some point organically change to reference a BIP. For<br>
example if a BIP was drafted as an optional feature but then becomes<br>
more widespread and then turns out to be crucial for the proper<br>
operation of the network then a BOLT can be changed to just reference<br>
the BIP as mandatory. There isn't anything wrong with this.<br>
<br>
All of the above would work exactly the same if there was a bLIP<br>
repository instead. I don't see the value in having both bLIPs and<br>
BIPs since AFAICT they seem to be functionally equivalent and BIPs are<br>
not restricted to exclude lightning, and never have been.<br>
<br>
I believe the reason this move to BIPs hasn't happened organically is<br>
because many still perceive the BOLTs available for editing, so<br>
changes continue to be made. If instead BOLTs were perceived as more<br>
"consensus critical", not subject to change, and more people were<br>
strongly encouraged to write specs for new lightning features<br>
elsewhere (like the BIP repo) then you would see this issue of growing<br>
BOLTs resolved.<br>
<br>
Cheers<br>
Ariel Lorenzo-Luaces<br>
<br>
On Wed, Jun 30, 2021 at 1:16 PM Olaoluwa Osuntokun <<a href="mailto:laolu32@gmail.com" target="_blank">laolu32@gmail.com</a>> wrote:<br>
><br>
> > That being said I think all the points that are addressed in Ryan's mail<br>
> > could very well be formalized into BOLTs but maybe we just need to rethink<br>
> > the current process of the BOLTs to make it more accessible for new ideas<br>
> > to find their way into the BOLTs?<br>
><br>
> I think part of what bLIPs are trying to solve here is promoting more loosely<br>
> coupled evolution of the network. I think the BOLTs do a good job currently of<br>
> specifying what _base_ functionality is required for a routing node in a<br>
> prescriptive manner (you must forward an HTLC like this, etc). However there's<br>
> a rather large gap in describing functionality that has emerged over time due<br>
> to progressive evolution, and aren't absolutely necessary, but enhance<br>
> node/wallet operation.<br>
><br>
> Examples of  include things like: path finding heuristics (BOLTs just say you<br>
> should get from Alice to Bob, but provides no recommendations w.r.t _how_ to do<br>
> so), fee bumping heuristics, breach retribution handling, channel management,<br>
> rebalancing, custom records usage (like the podcast index meta-data, messaging,<br>
> etc), JIT channel opening, hosted channels, randomized channel IDs, fee<br>
> optimization, initial channel boostrapping, etc.<br>
><br>
> All these examples are effectively optional as they aren't required for base<br>
> node operation, but they've organically evolved over time as node<br>
> implementations and wallet seek to solve UX and operational problems for<br>
> their users. bLIPs can be a _descriptive_ (this is how things can be done)<br>
> home for these types of standards, while BOLTs can be reserved for<br>
> _prescriptive_ measures (an HTLC looks like this, etc).<br>
><br>
> The protocol as implemented today has a number of extensions (TLVs, message<br>
> types, feature bits, etc) that allow implementations to spin out their own<br>
> sub-protocols, many of which won't be considered absolutely necessary for node<br>
> operation. IMO we should embrace more of a "bazaar" style of evolution, and<br>
> acknowledge that loosely coupled evolution allows participants to more broadly<br>
> explore the design space, without the constraints of "it isn't a thing until N<br>
> of us start to do it".<br>
><br>
> Historically, BOLTs have also had a rather monolithic structure. We've used<br>
> the same 11 or so documents for the past few years with the size of the<br>
> documents swelling over time with new exceptions, features, requirements,<br>
> etc. If you were hired to work on a new codebase and saw that everything is<br>
> defined in 11 "functions" that have been growing linearly over time, you'd<br>
> probably declare the codebase as being unmaintainable. By having distinct<br>
> documents for proposals/standards, bLIPs (author documents really), each new<br>
> standard/proposal is able to be more effectively explained, motivated, versionsed,<br>
> etc.<br>
><br>
> -- Laolu<br>
><br>
><br>
> On Wed, Jun 30, 2021 at 7:35 AM René Pickhardt via Lightning-dev <<a href="mailto:lightning-dev@lists.linuxfoundation.org" target="_blank">lightning-dev@lists.linuxfoundation.org</a>> wrote:<br>
>><br>
>> Hey everyone,<br>
>><br>
>> just for reference when I was new here (and did not understand the processes well enough) I proposed a similar idea (called LIP) in 2018 c.f.: <a href="https://lists.linuxfoundation.org/pipermail/lightning-dev/2018-July/001367.html" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/pipermail/lightning-dev/2018-July/001367.html</a><br>
>><br>
>> I wonder what exactly has changed in the reasoning by roasbeef which I will repeat here:<br>
>><br>
>> > We already have the equiv of improvement proposals: BOLTs. Historically<br>
>><br>
>> > new standardization documents are proposed initially as issues or PR's when<br>
>><br>
>> > ultimately accepted. Why do we need another repo?<br>
>><br>
>><br>
>> As far as I can tell there was always some form of (invisible?) barrier to participate in the BOLTs but there are also new BOLTs being offered:<br>
>> * BOLT 12: <a href="https://github.com/lightningnetwork/lightning-rfc/pull/798" rel="noreferrer" target="_blank">https://github.com/lightningnetwork/lightning-rfc/pull/798</a><br>
>> * BOLT 14: <a href="https://github.com/lightningnetwork/lightning-rfc/pull/780" rel="noreferrer" target="_blank">https://github.com/lightningnetwork/lightning-rfc/pull/780</a><br>
>> and topics to be included like:<br>
>> * dual funding<br>
>> * splicing<br>
>> * the examples given by Ryan<br>
>><br>
>> I don't see how a new repo would reduce that barrier - Actually I think it would even create more confusion as I for example would not know where something belongs. That being said I think all the points that are addressed in Ryan's mail could very well be formalized into BOLTs but maybe we just need to rethink the current process of the BOLTs to make it more accessible for new ideas to find their way into the BOLTs? One thing that I can say from answering lightning-network questions on stackexchange is that it would certainly help if the BOLTs where referenced  on lightning.network web page and in the whitepaper as the place to be if one wants to learn about the Lightning Network<br>
>><br>
>> with kind regards Rene<br>
>><br>
>> On Wed, Jun 30, 2021 at 4:10 PM Ryan Gentry via Lightning-dev <<a href="mailto:lightning-dev@lists.linuxfoundation.org" target="_blank">lightning-dev@lists.linuxfoundation.org</a>> wrote:<br>
>>><br>
>>> Hi all,<br>
>>><br>
>>><br>
>>> The recent thread around zero-conf channels [1] provides an opportunity to discuss how the BOLT process handles features and best practices that arise in the wild vs. originating within the process itself. Zero-conf channels are one of many LN innovations on the app layer that have struggled to make their way into the spec. John Carvalho and Bitrefill launched Turbo channels in April 2019 [2], Breez posted their solution to the mailing list for feedback in August 2020 [3], and we know at least ACINQ and Muun (amongst others) have their own implementations. In an ideal world there would be a descriptive design document that the app layer implementers had collaborated on over the years that the spec group could then pick up and merge into the BOLTs now that the feature is deemed spec-worthy.<br>
>>><br>
>>><br>
>>> Over the last couple of months, we have discussed the idea of adding a BIP-style process (bLIPs? SPARKs? [4]) on top of the BOLTs with various members of the community, and have received positive feedback from both app layer and protocol devs. This would not affect the existing BOLT process at all, but simply add a place for app layer best practices to be succinctly described and organized, especially those that require coordination. These features are being built outside of the BOLT process today anyways, so ideally a bLIP process would bring them into the fold instead of leaving them buried in old ML posts or not documented at all.<br>
>>><br>
>>><br>
>>> Some potential bLIP ideas that people have mentioned include: each lnurl variant, on-the-fly channel opens, AMP, dynamic commitments, podcast payment metadata, p2p messaging formats, new pathfinding heuristics, remote node connection standards, etc.<br>
>>><br>
>>><br>
>>> If the community is interested in moving forward, we've started a branch [5] describing such a process. It's based on BIP-0002, so not trying to reinvent any wheels. It would be great to have developers from various implementations and from the broader app layer ecosystem volunteer to be listed as editors (basically the same role as in the BIPs).<br>
>>><br>
>>><br>
>>> Looking forward to hearing your thoughts!<br>
>>><br>
>>><br>
>>> Best,<br>
>>> Ryan<br>
>>><br>
>>><br>
>>> [1] <a href="https://lists.linuxfoundation.org/pipermail/lightning-dev/2021-June/003074.html" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/pipermail/lightning-dev/2021-June/003074.html</a><br>
>>><br>
>>> [2] <a href="https://www.coindesk.com/bitrefills-thor-turbo-lets-you-get-started-with-bitcoins-lightning-faster" rel="noreferrer" target="_blank">https://www.coindesk.com/bitrefills-thor-turbo-lets-you-get-started-with-bitcoins-lightning-faster</a><br>
>>><br>
>>> [3] <a href="https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-August/002780.html" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/pipermail/lightning-dev/2020-August/002780.html</a><br>
>>><br>
>>> [4] bLIP = Bitcoin Lightning Improvement Proposal and SPARK = Standardization of Protocols at the Request of the Kommunity (h/t fiatjaf)<br>
>>><br>
>>> [5] <a href="https://github.com/ryanthegentry/lightning-rfc/blob/blip-0001/blips/blip-0001.mediawiki" rel="noreferrer" target="_blank">https://github.com/ryanthegentry/lightning-rfc/blob/blip-0001/blips/blip-0001.mediawiki</a><br>
>>><br>
>>> _______________________________________________<br>
>>> Lightning-dev mailing list<br>
>>> <a href="mailto:Lightning-dev@lists.linuxfoundation.org" target="_blank">Lightning-dev@lists.linuxfoundation.org</a><br>
>>> <a href="https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev</a><br>
>><br>
>><br>
>><br>
>> --<br>
>> <a href="https://www.rene-pickhardt.de" rel="noreferrer" target="_blank">https://www.rene-pickhardt.de</a><br>
>> _______________________________________________<br>
>> Lightning-dev mailing list<br>
>> <a href="mailto:Lightning-dev@lists.linuxfoundation.org" target="_blank">Lightning-dev@lists.linuxfoundation.org</a><br>
>> <a href="https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev</a><br>
><br>
> _______________________________________________<br>
> Lightning-dev mailing list<br>
> <a href="mailto:Lightning-dev@lists.linuxfoundation.org" target="_blank">Lightning-dev@lists.linuxfoundation.org</a><br>
> <a href="https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev</a><br>
_______________________________________________<br>
Lightning-dev mailing list<br>
<a href="mailto:Lightning-dev@lists.linuxfoundation.org" target="_blank">Lightning-dev@lists.linuxfoundation.org</a><br>
<a href="https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev" rel="noreferrer" target="_blank">https://lists.linuxfoundation.org/mailman/listinfo/lightning-dev</a><br>
</blockquote></div>