<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 31, 2017 at 6:22 PM, Matt Corallo <span dir="ltr">&lt;<a href="mailto:lf-lists@mattcorallo.com" target="_blank">lf-lists@mattcorallo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey Sergio,<br>
<br>
You appear to have ignored the last two years of Bitcoin hardfork<br>
research and understanding, recycling instead BIP 102 from 2015. There<br>
are many proposals which have pushed the state of hard fork research<br>
much further since then, and you may wish to read some of the posts on<br>
this mailing list listed at <a href="https://bitcoinhardforkresearch.github.io/" rel="noreferrer" target="_blank">https://<wbr>bitcoinhardforkresearch.<wbr>github.io/</a><br>
and make further edits based on what you learn. </blockquote><div><br></div><div>I&#39;ve read every proposal that was published in the last two years and the choice for NOT implementing any of the super cool research you cite is intentional.</div><div><br></div><div>We&#39;re in a deadlock and it seems we can&#39;t go forward adding more functionality to segwit without the community approval (which include miners). This is obvious to me.Then we have to go back. </div><div> </div><div>If this last resort solution is merged, we could go back to discuss improvements with the </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Your goal of &quot;avoid<br>
technical changes&quot; appears to not have any basis outside of perceived<br>
compromise for compromise sake, only making such a hardfork riskier<br>
instead.<br>
<br></blockquote><div>You&#39;re are totally correct. It&#39;s a compromise for the compromise sake. I couldn&#39;t have expressed it more clearly. However the only &quot;riskier&quot; element is the hard forking date. We can move the date forward.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
At a minimum, in terms of pure technical changes, you should probably<br>
consider (probably among others): <br></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
a) Utilizing the &quot;hard fork signaling bit&quot; in the nVersion of the block.<br></blockquote><div><br></div><div>This I could consider, as it requires probably a single line of code. Which BIP specifies this?</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
b) Either limiting non-SegWit transactions in some way to fix the n**2<br>
sighash and FindAndDelete runtime and memory usage issues or fix them by<br>
utilizing the new sighash type which many wallets and projects have<br>
already implemented for SegWit in the spending of non-SegWit outputs.<br></blockquote><div><br></div><div>The Seghash problem has already been addressed by limiting the maximum size of a transaction to 1 Mb.</div><div>The FindAndDelete problem has already been solved by the Core Developers, so we don&#39;t have to worry about it anymore.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
c) Your really should have replay protection in any HF. </blockquote><div><br></div><div>We could add a simple protection, although if we reach community consensus and 95% of hashing power, does we really need to? Can the old chain still be alive?</div><div>If more people ask for replay protection, I will merge Spoonet scheme or develop the minimum possible replay protection (a simple signaling bit in transaction version) </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
d) You may wish to consider the possibility of tweaking the witness<br>
discount and possibly discounting other parts of the input - SegWit went<br>
a long ways towards making removal of elements from the UTXO set cheaper<br>
than adding them, but didn&#39;t quite get there, you should probably finish<br>
that job. This also provides additional tuneable parameters to allow you<br>
to increase the block size while not having a blowup in the worst-case<br>
block size.<br></blockquote><div><br></div><div>That is an interesting economic change and would be out of the scope of segwit2mb.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
e) Additional commitments at the top of the merkle root - both for<br>
SegWit transactions and as additional space for merged mining and other<br>
commitments which we may wish to add in the future, this should likely<br>
be implemented an &quot;additional header&quot; ala Johnson Lau&#39;s Spoonnet proposal.<br>
<br></blockquote><div>That is an interesting technical improvement that is out of the scope of segwit2mb.</div><div>We can keep discussing spoonet while we merge segwit2mb, as spoonnet includes most of technical innovations.</div><div>   </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Additionally, I think your parameters here pose very significant risk to<br>
the Bitcoin ecosystem broadly.<br>
<br>
a) Activating a hard fork with less than 18/24 months (and even then...)<br>
from a fully-audited and supported release of full node software to<br>
activation date poses significant risks to many large software projects<br>
and users. I&#39;ve repeatedly received feedback from various folks that a<br>
year or more is likely required in any hard fork to limit this risk, and<br>
limited pushback on that given the large increase which SegWit provides<br>
itself buying a ton of time.<br>
<br></blockquote><div>The feedback I received is slightly different from your feedback. Many company CTOs have expressed that one year for a Bitcoin hard-fork was period they could schedule a secure upgrade.</div><div><br></div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
b) Having a significant discontinuity in block size increase only serves<br>
to confuse and mislead users and businesses, forcing them to rapidly<br>
adapt to a Bitcoin which changed overnight both by hardforking, and by<br>
fees changing suddenly. Instead, having the hard fork activate technical<br>
changes, and then slowly increasing the block size over the following<br>
several years keeps things nice and continuous and also keeps us from<br>
having to revisit ye old blocksize debate again six months after activation.<br>
<br></blockquote><div>This is something worth considering. There is the old Pieter BIP103 proposal has good parameters (17.7% per year).</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
c) You should likely consider the effect of the many technological<br>
innovations coming down the pipe in the coming months. Technologies like<br>
Lightning, TumbleBit, and even your own RootStock could significantly<br>
reduce fee pressure as transactions move to much faster and more<br>
featureful systems.<br>
<br></blockquote><div>RSK sidechain team would have to take very tough decisions if Bitcoin splits, as RSK platform cannot be pegged to two different cryptocurrencies. We could launch two platforms, but RSK value proposition is &quot;supporting the advance of Bitcoin, the cryptocurrecy with highest network effect&quot;. You understand that if Bitcoin splits Bitcoin BTC/BTU separately may cease to be the cryptocurrencies with higher volume/market cap/network effect.</div><div><br></div><div>Therefore all RSK people that I talked too would prefer to avoid a split at all cost, reather that to be the winners of the scaling war.  </div><div> </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail-HOEnZb"><div class="gmail-h5">
<br>
On March 31, 2017 5:09:18 PM EDT, Sergio Demian Lerner via bitcoin-dev &lt;<a href="mailto:bitcoin-dev@lists.linuxfoundation.org">bitcoin-dev@lists.<wbr>linuxfoundation.org</a>&gt; wrote:<br>
&gt;Hi everyone,<br>
&gt;<br>
&gt;Segwit2Mb is the project to merge into Bitcoin a minimal patch that<br>
&gt;aims to<br>
&gt;untangle the current conflict between different political positions<br>
&gt;regarding segwit activation vs. an increase of the on-chain blockchain<br>
&gt;space through a standard block size increase. It is not a new solution,<br>
&gt;but<br>
&gt;it should be seen more as a least common denominator.<br>
&gt;<br>
&gt;Segwit2Mb combines segwit as it is today in Bitcoin 0.14+ with a 2MB<br>
&gt;block<br>
&gt;size hard-fork activated ONLY if segwit activates (95% of miners<br>
&gt;signaling), but at a fixed future date.<br>
&gt;<br>
&gt;The sole objective of this proposal is to re-unite the Bitcoin<br>
&gt;community<br>
&gt;and avoid a cryptocurrency split. Segwit2Mb does not aim to be best<br>
&gt;possible technical solution to solve Bitcoin technical limitations.<br>
&gt;However, this proposal does not imply a compromise to the future<br>
&gt;scalability or decentralization of Bitcoin, as a small increase in<br>
&gt;block<br>
&gt;size has been proven by several core and non-core developers not to<br>
&gt;affect<br>
&gt;Bitcoin value propositions.<br>
&gt;<br>
&gt;In the worst case, a 2X block size increase has much lower economic<br>
&gt;impact<br>
&gt;than the last bitcoin halving (&lt;10%), which succeeded without problem.<br>
&gt;<br>
&gt;On the other side, Segwit2Mb primary goal is to be minimalistic: in<br>
&gt;this<br>
&gt;patch some choices have been made to reduce the number of lines<br>
&gt;modified in<br>
&gt;the current Bitcoin Core state (master branch), instead of implementing<br>
&gt;the<br>
&gt;most elegant solution. This is because I want to reduce the time it<br>
&gt;takes<br>
&gt;for core programmers and reviewers to check the correctness of the<br>
&gt;code,<br>
&gt;and to report and correct bugs.<br>
&gt;<br>
&gt;The patch was built by forking the master branch of Bitcoin Core,<br>
&gt;mixing a<br>
&gt;few lines of code from Jeff Garzik&#39;s BIP102,  and defining a second<br>
&gt;versionbits activation bit (bit 2) for the combined activation.<br>
&gt;<br>
&gt;The combined activation of segwit and 2Mb hard-fork nVersion bit is 2<br>
&gt;(DEPLOYMENT_SEGWIT_AND_2MB_<wbr>BLOCKS).<br>
&gt;<br>
&gt;This means that segwit can still be activated without the 2MB hard-fork<br>
&gt;by<br>
&gt;signaling bit 1 in nVersion  (DEPLOYMENT_SEGWIT).<br>
&gt;<br>
&gt;The tentative lock-in and hard-fork dates are the following:<br>
&gt;<br>
&gt;Bit 2 signaling StartTime = 1493424000; // April 29th, 2017<br>
&gt;<br>
&gt;Bit 2 signaling Timeout = 1503964800; // August 29th, 2017<br>
&gt;<br>
&gt;HardForkTime = 1513209600; // Thu, 14 Dec 2017 00:00:00 GMT<br>
&gt;<br>
&gt;<br>
&gt;The hard-fork is conditional to 95% of the hashing power has approved<br>
&gt;the<br>
&gt;segwit2mb soft-fork and the segwit soft-fork has been activated (which<br>
&gt;should occur 2016 blocks after its lock-in time)<br>
&gt;<br>
&gt;For more information on how soft-forks are signaled and activated, see<br>
&gt;<a href="https://github.com/bitcoin/bips/blob/master/bip-0009.mediawiki" rel="noreferrer" target="_blank">https://github.com/bitcoin/<wbr>bips/blob/master/bip-0009.<wbr>mediawiki</a><br>
&gt;<br>
&gt;This means that segwit would be activated before 2Mb: this is<br>
&gt;inevitable,<br>
&gt;as versionbits have been designed to have fixed activation periods and<br>
&gt;thresholds for all bits. Making segwit and 2Mb fork activate together<br>
&gt;at a<br>
&gt;delayed date would have required a major re-write of this code, which<br>
&gt;would<br>
&gt;contradict the premise of creating a minimalistic patch. However, once<br>
&gt;segwit is activated, the hard-fork is unavoidable.<br>
&gt;<br>
&gt;Although I have coded a first version of the segwit2mb patch (which<br>
&gt;modifies 120 lines of code, and adds 220 lines of testing code), I<br>
&gt;would<br>
&gt;prefer to wait to publish the source code until more comments have been<br>
&gt;received from the community.<br>
&gt;<br>
&gt;To prevent worsening block verification time because of the O(N^2)<br>
&gt;hashing<br>
&gt;problem, the simple restriction that transactions cannot be larger than<br>
&gt;1Mb<br>
&gt;has been kept. Therefore the worse-case of block verification time has<br>
&gt;only<br>
&gt;doubled.<br>
&gt;<br>
&gt;Regarding the hard-fork activation date, I want to give enough time to<br>
&gt;all<br>
&gt;active economic nodes to upgrade. As of Fri Mar 31 2017,<br>
&gt;<a href="https://bitnodes.21.co/nodes/" rel="noreferrer" target="_blank">https://bitnodes.21.co/nodes/</a> reports that 6332 out of 6955 nodes (91%)<br>
&gt;have upgraded to post 0.12 versions. Upgrade to post 0.12 versions can<br>
&gt;be<br>
&gt;used to identify economic active nodes, because in the 0.12 release<br>
&gt;dynamic<br>
&gt;fees were introduced, and currently no Bitcoin automatic payment system<br>
&gt;can<br>
&gt;operate without automatic discovery of the current fee rate. A pre-0.12<br>
&gt;would require constant manual intervention.<br>
&gt;Therefore I conclude that no more than 91% of the network nodes<br>
&gt;reported by<br>
&gt;bitnodes are active economic nodes.<br>
&gt;<br>
&gt;As Bitcoin Core 0.12 was released on February 2016, the time for this<br>
&gt;91%<br>
&gt;to upgrade has been around one year (under a moderate pressure of<br>
&gt;operational problems with unconfirmed transactions).<br>
&gt;Therefore we can expect a similar or lower time to upgrade for a<br>
&gt;hard-fork,<br>
&gt;after developers have discussed and approved the patch, and it has been<br>
&gt;reviewed and merged and 95% of the hashing power has signaled for it<br>
&gt;(the<br>
&gt;pressure not to upgrade being a complete halt of the operations).<br>
&gt;However I<br>
&gt;suggest that we discuss the hard-fork date and delay it if there is a<br>
&gt;real<br>
&gt;need to.<br>
&gt;<br>
&gt;Currently time works against the Bitcoin community, and so is delaying<br>
&gt;a<br>
&gt;compromise solution. Most of the community agree that halting the<br>
&gt;innovation for several years is a very bad option.<br>
&gt;<br>
&gt;After the comments collected by the community, a BIP will be written<br>
&gt;describing the resulting proposal details.<br>
&gt;<br>
&gt;If segwit2mb locks-in, before hard-fork occurs all bitcoin nodes should<br>
&gt;be<br>
&gt;updated to a Segwit2Mb enabled node to prevent them to be forked-away<br>
&gt;in a<br>
&gt;chain with almost no hashing-power.<br>
&gt;<br>
&gt;The proof of concept patch was made for Bitcoin Core but should be<br>
&gt;easily<br>
&gt;ported to other Bitcoin protocol implementations that already support<br>
&gt;versionbits. Lightweight (SPV) wallets should not be affected as they<br>
&gt;generally do not check the block size.<br>
&gt;<br>
&gt;I personally want to see the Lightning Network in action this year, use<br>
&gt;the<br>
&gt;non-malleability features in segwit, see the community discussing other<br>
&gt;exciting soft-forks in the scaling roadmap, Schnorr sigs, drivechains<br>
&gt;and<br>
&gt;MAST.<br>
&gt;<br>
&gt;I want to see miners, developers and industry side-by-side pushing<br>
&gt;Bitcoin<br>
&gt;forward, to increase the value of Bitcoin and prevent high transaction<br>
&gt;fees<br>
&gt;to put out of business use-cases that could have high positive social<br>
&gt;impact.<br>
&gt;<br>
&gt;I believe in the strength of a unified Bitcoin community. If you&#39;re a<br>
&gt;developer, please give your opinion, suggest changes, audit it, and<br>
&gt;take a<br>
&gt;stand with me to unlock the current Bitcoin deadlock.<br>
&gt;<br>
&gt;Contributions to the segwit2mb project are welcomed and awaited. The<br>
&gt;only<br>
&gt;limitation is to stick to the principle that the patch should be as<br>
&gt;simple<br>
&gt;to audit as possible. As an example, I wouldn&#39;t feel confident if the<br>
&gt;patch<br>
&gt;modified more than ~150 lines of code.<br>
&gt;<br>
&gt;Improvements unrelated to a 2 Mb increase or segwit, as beneficial as<br>
&gt;it<br>
&gt;may be to Bitcoin, should not be part of segwit2Mb.<br>
&gt;<br>
&gt;This proposal should not prevent other consensus proposals to be<br>
&gt;simultaneously merged: segwit2mb is a last resort solution in case we<br>
&gt;can<br>
&gt;not reach consensus on anything better.<br>
&gt;<br>
&gt;Again, the proposal is only a starting point: community feedback is<br>
&gt;expected and welcomed.<br>
&gt;<br>
&gt;Regards,<br>
&gt;Sergio Demian Lerner<br>
</div></div></blockquote></div><br></div></div>