The Bitcoin Optech newsletter provides readers with a top-level summary of the most important technical news happening in Bitcoin, along with resources that help them learn more. To help our readers stay up-to-date with Bitcoin, we're republishing the latest issue of this newsletter below. Remember to subscribe to receive this content straight to your inbox.
This week’s newsletter summarizes continued discussion about proposed methods for activating taproot and links to an effort to document existing software building on top of taproot. Also included are our regular sections with the summary of a Bitcoin Core PR Review Club meeting, announcements of releases and release candidates, and descriptions of notable changes to popular Bitcoin infrastructure projects.
- Taproot activation discussion: the previous weeks’ discussions about activation saw different groups of people opposing either BIP8
LOT=false, so most discussion on the mailing list this week focused on alternative activation mechanisms. Some proposals included:
- User Activated Soft Fork (UASF): a plan being discussed to implement BIP8
LOT=truein a software fork of Bitcoin Core that mandates miners signal for activation of taproot by July 2022 (as widely proposed), but which also allows miners to activate it earlier.
- Flag day: several proposals (1, 2) to program into nodes a specific block height or time roughly 18 months from now (as proposed) where taproot activates. Miner signaling is not required to cause activation and cannot cause earlier activation. Anthony Towns wrote a draft implementation.
- Decreasing threshold: several proposals (1, 2) to gradually decrease over time the number of blocks that must signal readiness for miners to enforce taproot before the new consensus rules lock in. See also Anthony Town’s proposal from last year described in Newsletter #107.
- A configurable LOT: in addition to previously-discussed proposals to make BIP8’s
LOTvalue a configuration option (see Newsletter #137), rough code was posted showing how
LOT=truecould be enforced via an external script calling RPC commands. Additional code was created showing how
LOT=truecould also be opposed by node operators who were worried about it creating block chain instability.
- A short-duration attempt at miner activation: an updated proposal to give miners approximately three months to lock in taproot, starting from soon after the release of a full node implementing the activation logic. If the attempt failed, the community would be encouraged to move on to a different activation method. If the attempt succeeded, there would still be a several month delay before taproot activated to allow most of the economy to upgrade their nodes. A draft implementation for this proposal based on Bitcoin Core’s existing BIP9 implementation was also written by Anthony Towns. Andrew Chow created an alternative draft implementation based on the previously proposed BIP8 implementation.
- Could be co-opted for mandatory activation: even though the proposal explicitly encourages making other activation attempts if miners don’t quickly signal sufficient support for taproot, a concern was expressed that it could be co-opted by a group of users seeking fast mandatory activation, although it was noted that no group has previously expressed the desire to attempt mandatory activation on such a dangerously short timeline.
- Using time-based or height-based parameters: the proposal describes the tradeoffs between setting its
minimum_activationparameters using either times (based on the median of the previous 11 blocks) or block heights. Using times would result in the smallest and easiest to review patch to Bitcoin Core. Using heights would provide a bit more predictability, especially for miners, and would be compatible with other attempts using BIP8.
- Myopic: there was concern that the proposal is too focused on the short term: “Speedy Trial fully prepares for the (likely) case where miners activate taproot, but it does nothing to codify lessons learned from Segwit’s failure to activate in a timely manner. We have an opportunity with the activation of taproot to create a template for future activations that will clearly define the roles and responsibilities for developers, miners, merchants, investors, and end users in all the ways an activation can progress, not just the best-case outcomes; in particular enabling and enshrining the final arbiter role held by Bitcoin’s economic users. Defining this will only get more difficult in the future, both because we’ll only do so when we’re already in crisis, and because Bitcoin’s growth means future agreement will need to be done at greater scale and so with greater difficulty.”
- Speed: the proposal, based on initial discussion from the ##taproot-activation IRC channel, proposes giving miners about three months to lock in taproot and waiting a fixed six months from the start of signal measuring before activation (if lock in is achieved). Some people have sought either slightly shorter or slightly longer timelines.
- User Activated Soft Fork (UASF): a plan being discussed to implement BIP8
- Documenting the intention to use and build upon taproot: In discussion about activation methods, Chris Belcher noted that a large list of software was compiled whose developers stated their intention to implement segwit during the debate around activating that soft fork. He suggested that a similar list could be created to document for posterity the amount of support taproot has. That way it could be clear that taproot was desired by a large segment of the economy no matter how it ends up being activated.Jeremy Rubin posted to the Bitcoin-Dev mailing list a link to a somewhat related wiki page where developers can post links to projects they’re building on top of taproot’s new proposed features. This can provide assurance that taproot provides solutions people actually want and is designed in such a way that its features will get used.
Bitcoin Core PR Review Club
In this monthly section, we summarize a recent Bitcoin Core PR Review Club meeting, highlighting some of the important questions and answers. Click on a question below to see a summary of the answer from the meeting.
Erlay: bandwidth-efficient transaction relay protocol is a PR (#18261) by Gleb Naumenko that proposes to implement BIP330 in Bitcoin Core.
The review club discussion focused on the tradeoffs, implementation and potential new attack vectors involved with Erlay. In subsequent meetings, the review club discussed Minisketch, a library implementing the PinSketch set reconciliation algorithm that is the basis for the efficient relay protocol in Erlay.
Releases and release candidates
New releases and release candidates for popular Bitcoin infrastructure projects. Please consider upgrading to new releases or helping to test release candidates.
- Eclair 0.5.1 is the latest release of this LN node, containing improvements to startup speed, reduced bandwidth consumption when syncing the network graph, and a series of small improvements in preparation for supporting anchor oututs.
- HWI 2.0.0RC2 is a release candidate for the next major version of HWI.
Notable code and documentation changes
Notable changes this week in Bitcoin Core, C-Lightning, Eclair, LND, Rust-Lightning, libsecp256k1, Hardware Wallet Interface (HWI), Rust Bitcoin, BTCPay Server, Bitcoin Improvement Proposals (BIPs), and Lightning BOLTs.
- Bitcoin Core #20685 Adds I2P support by using the I2P SAM protocol. This feature has long been requested and was only recently made possible by the addition of addr v2 Though documentation for node operators hoping to run I2P is still being created, a Bitcoin StackExchange Q&A provides hints on getting started.
- C-Lightning #4407 updates the
listpeersRPC with new fields that provide information about each channel’s current unilateral close transaction, including its fee (both in total fee terms and as a feerate).
- Rust-Lightning #646 adds the ability to find multiple paths for a payment so that it will be possible to add multipath payment support.
- BOLTs #839 adds funding transaction timeout recommendations to save funding fees when there’s a failure to confirm funding transactions, providing stronger guarantees for the channel funder and fundee. The new recommendations suggest that the funder commits to ensuring the funding transaction confirms in 2016 blocks and recommends that the fundee forget the pending channel if the funding transaction not confirm within those 2016 blocks.
- BTCPay Server #2181 uppercases bech32 addresses when presenting BIP21 URIs as QR codes. This results in less dense QR codes as uppercase substrings can be encoded more efficiently. The change was preceded by an extensive compatibility survey of wallets with the BIP21 URI scheme.