Press Enter to search · ESC to close

Crypto

Bitcoin Optech Newsletter #434

Editorial illustration, not a photograph of the reported event
This week’s newsletter relays a joint statement from nine developers prioritizing post-quantum signatures for Bitcoin, describes a STARK proof of the UTXO set,

This week’s newsletter relays a joint statement from nine developers
prioritizing post-quantum signatures for Bitcoin, describes a STARK proof of
the UTXO set, summarizes a census of outputs whose keys or scripts are already
onchain, and examines an attack that links addresses to nodes through wallet
rebroadcast. Also included are our regular sections summarizing proposals and
discussion about changing Bitcoin’s consensus rules, announcing new releases
and release candidates, and describing notable changes to popular Bitcoin
infrastructure software.

News

  • ● Joint statement on post-quantum signature prioritization: Pieter Wuille
    posted to Delving Bitcoin a statement signed by nine
    developers saying that they are making the availability of
    post-quantum signatures in Bitcoin their top
    priority. The signers are Antoine Poinsot, Cory Fields, Greg Sanders, Jonas
    Nick, Matt Corallo, Michael Ford, Mark “Murch” Erhardt, Pieter Wuille, and Tim
    Ruffing. They signed as individuals and wrote that they do not speak for any
    organization or project.

    The signers intend to draft a set of proposals by the end of January 2027 that
    would let users transact safely on Bitcoin without relying only on elliptic
    curve cryptography. The proposals will include a post-quantum signature
    scheme, its integration into Bitcoin Script, and at least one new output type.
    The statement says this builds on existing draft BIPs for post-quantum
    signatures and on extensive discussion of upgrade paths (see Newsletters
    #421 and #425).

    The statement attributes the higher priority and faster timeline to recent
    events, including “the discoveries referred to by the US government on
    December 2nd.” The signers wrote that they are not aware of any concrete
    attacks and have no non-public information.

  • ● STARK proof of the UTXO set at block 972,500: l-henri posted
    to Delving Bitcoin about a 1.6 MB STARK proof of the UTXO set after block
    972,500 that a browser verifies in about half a second. A STARK is a
    succinct proof that a computation was performed correctly. According to
    l-henri, this one shows that a header chain from the genesis block has the
    stated chainwork and follows Bitcoin Core’s header rules, except the rule
    against timestamps too far in the future, and that replaying blocks 935,001
    through 972,500 on top of the assumeUTXO snapshot whose
    hash Bitcoin Core hardcodes for height 935,000 yields a UTXO set whose
    hash_serialized matches the one Bitcoin Core computes. Because the replay
    starts from that snapshot, the result relies on the same trust as loading
    it and is not a proof from genesis. ZeroSync previously demonstrated a STARK
    proof of the header chain (see Newsletter #269).

    As with Bitcoin Core’s assumevalid setting, the proof does not check
    scripts or signatures. l-henri later added that, unlike
    assumevalid, it also does not enforce BIP68 relative timelocks or
    count P2SH and witness signature operations toward the block limit.
    Machine-checked Lean 4 proofs show that its constraints enforce a Lean
    specification of the rules, but that specification was differentially
    fuzzed against Bitcoin Core’s code rather than proven equivalent to it. The
    proof also assumes the soundness of the underlying proof system, including
    when it is used recursively (see Newsletter #425), and the
    work has had no external review.

    l-henri plans to try a patch that lets Bitcoin Core load a snapshot attested
    by such a proof and skip background validation, but expects that to be
    controversial and asked for opinions first. Anthony Towns argued that proofs of UTXO set updates would stay useful longer than proofs
    of full block validation, since soft forks generally change only the latter.
    Towns also asked whether Bitcoin Core should output a
    merklized hash of the UTXO set, which l-henri replied would
    allow per-coin inclusion and exclusion proofs and checking a snapshot in
    chunks.

  • ● Census of exposed outputs: duncan0k posted to Delving
    Bitcoin a census of the UTXO set at block 975,019 that counts the value held
    in outputs whose public key or script has already been published onchain. This
    census follows the author’s proposal for a draft BIP362 (BIPs #2294) that
    defines a classification for exposed outputs in four levels:
    EXPOSED_AT_REST, which identifies long exposure as described in BIP360,
    EXPOSED_ON_SPEND, which identifies short exposure as described in the same
    BIP, NOT_EXPOSED, which identifies outputs that require a valid post-quantum
    signature on every spending path, and UNDETERMINED, which identifies those
    outputs for which the script semantics could not be inferred.

    The census took into consideration all the UTXOs up to block height 975,019.
    According to the research, 35.6% of the value of the UTXO set sits in outputs
    whose public key or script is already public, for a total of 7,164,754.12 BTC.
    Of these, 1,937,232.46 BTC sits in P2TR, P2PK, and bare multisig outputs,
    whose plain public keys are in the outputs, while the rest is in P2PKH,
    P2WPKH, P2SH and P2WSH outputs, which count because their keys or scripts were
    published onchain. These numbers were found by taking the various hashes in
    the UTXO set and comparing them with every script or key published onchain, up
    to the specified block height. For more information about the methods adopted,
    readers can refer to the repository.

    duncan0k pointed out that the census’s count differs from the
    EXPOSED_AT_REST classification expressed in BIP362. He also stated that the
    count of uncounted outputs does not match the draft’s EXPOSED_ON_SPEND
    classifications, since some uncounted outputs are classified as
    UNDETERMINED.

  • ● Linking addresses to nodes through wallet rebroadcast: Abubakar Sadiq
    Ismail posted to Delving Bitcoin about an attack,
    brainstormed with Pol Espinasa, that uses Bitcoin Core’s wallet rebroadcast
    to link an address to the IP address of the node whose wallet tracks it. A
    node does not normally announce a transaction already in its mempool to a
    newly connected peer, but Bitcoin Core’s wallet re-announces unconfirmed
    transactions it sent or received every 12 to 36 hours. An attacker pays a
    small amount to a target address at a feerate unlikely to confirm quickly,
    so the wallet tracking that address later rebroadcasts the payment. The
    attacker then connects a new peer to each candidate node and sees which one
    announces it. The leak has been known since 2014 (see Bitcoin Core #3828
    and Newsletter #64). Ismail’s regtest simulation
    identified the correct node in 30 of 30 attempts, and he estimated the cost
    at about 300 to 570 sat per transaction.

    Ismail noted that the attack works against any Bitcoin Core wallet,
    including watch-only wallets and those used by software such as Sparrow,
    Specter Desktop, Liana, JoinMarket, and Eclair. He also noted that the
    rebroadcast does not use private broadcast, even for a transaction first sent that way, and that a node with
    both Tor and clearnet peers reveals its clearnet
    IP address.

    Setting -walletbroadcast=0 stops the rebroadcast but also disables the
    wallet’s initial broadcast of its own transactions. Three open PRs propose
    narrower changes. They are not mutually exclusive, but developers disagree
    about whether the wallet should stop rebroadcasting transactions it
    receives. Bitcoin Core #36482 by Ava Chow only rebroadcasts a
    transaction that was not already in the node’s mempool. Martin Zumsande
    replied that an attacker could still use
    replacements to remove the planted transaction from mempools
    while leaving it valid for the wallet to rebroadcast. Zumsande suggested
    adding his Bitcoin Core #36398, which stops the wallet from
    rebroadcasting transactions that do not spend its own inputs or re-adding
    them to the node’s mempool, and Chow’s Bitcoin Core #36481, which adds a
    rebroadcastwallettx RPC and GUI action so that receivers can rebroadcast
    manually. Chow had earlier objected to Zumsande’s PR,
    arguing that rebroadcasting received transactions helps them confirm and
    that CPFP fee bumping requires the parent to be in the node’s
    mempool. Chow suggested instead having nodes also rebroadcast transactions
    unrelated to their wallets (see Newsletter #148).

Changing consensus

A monthly section summarizing proposals and discussion about changing
Bitcoin’s consensus rules.

  • ● Continued discussion of BIP54: Following last month’s summary of the consensus cleanup soft fork
    (BIP54), LearnBitcoin.com posted mainnet measurements
    of the time warp block timestamp seams that BIP54 would
    bound. Across all difficulty adjustments through block 973,728, the first
    block of a period was earlier than the previous period’s last block only ten
    times. The worst was 1,127 seconds, at block 203,616 in October 2012. Since
    2015 the worst is 43 seconds, at block 812,448. Nothing approaches the
    7,200-second allowance. The seam list is published as a CSV file. Antoine Poinsot reproduced the worst-case figure
    with a mainnet header sync patched to enforce BIP54’s time warp rule on every
    block. Block 203,616 passed.

    Antoine Riard noted that libbitcoin-system now
    implements the full list of BIP54 changes
    (libbitcoin-system #2149, merged November 3). He still
    plans to review it against Bitcoin Core. Riard pondered
    whether the retarget-block rule, a maximum of 7,200 seconds earlier than the
    previous block, lets whoever sets that previous timestamp invalidate some
    miners’ next blocks. He wrote that the pinning he described would need a
    majority of hashrate, that it could be combined with selfish mining, and that
    he does not think it changes the case for BIP54. LearnBitcoin.com replied that the rule is measured from the previous block’s timestamp,
    not from the median time past, and that a node already rejects a block more
    than two hours ahead, the same margin. An honestly stamped next block still
    passes the rule for any previous block that node has accepted, as long as the
    two clocks agree. Bitcoin Core’s block template is also already stricter: a
    retarget block’s minimum time is the previous block’s time minus 600 seconds,
    the BIP94 value.

  • ● Tapleaf 0xc2 and the Great Script Restoration: Julian Moik and Rusty
    Russell posted to the Bitcoin-Dev mailing list an overview of
    five documents specifying a second taproot leaf version, leaf
    0xc2. The proposal does not modify legacy, segwit v0 or tapleaf 0xc0 scripts.
    This is the updated five-document version of the BIP440 and BIP441
    work covered in Newsletter #399. BIP440 generalizes the
    BIP342 signature-operation budget to every operation: a transaction-wide
    budget funded by weight. In the latest draft, weight from inputs that already
    have their own signature limits no longer funds the varops budget, and every
    executed opcode and data push pays a fixed charge. Reusable macros let a script declare a repeated instruction sequence once. Each
    reference is replaced before execution, so the script runs as if those
    instructions had been written inline. The fixed charge per operation, against
    that transaction-wide budget, is what keeps a macro-compressed script safe: it
    still pays for every operation it contains, and its validation cost stays
    within the worst case that existing scripts, including leaf 0xc0, already
    allow.

    BIP441 restores the fifteen opcodes disabled in Bitcoin 0.3.1, makes numbers
    arbitrary-length unsigned integers, and raises stack limits. OP_TX pushes
    selected fields from the spending transaction, the spent outputs, and the
    taproot context. The extended primitives add no new cryptography.
    OP_CHECKSIGFROMSTACK (CSFS) and OP_TWEAKADD
    keep the names, values, and semantics of BIP348 and BIP449, and
    OP_BYTEREV reverses a stack element’s bytes. They wrote that the set can
    express general covenants, including recursive ones, and
    script checks of hash-based signatures as a post-quantum fallback, though
    keypath spends would still have to be disabled for that use. They proposed
    activating all five documents together as one soft fork. The updated script
    restoration proposal remains compatible with OP_CHECKTEMPLATEVERIFY, CSFS, or
    OP_TEMPLATEHASH (BIP446) activating in leaf 0xc0. The specs are on the
    gsr-full branch, and a fork implementing them is
    bitcoin-gsr.

    They listed miner extractable value (MEV) among the open risks. If a
    shared contract’s outcome depends on transaction order, as with an onchain
    exchange or auction, miners might profit by choosing that order, which
    would favor large and sophisticated miners. They also asked whether an
    opcode should let validation check the amounts several inputs claim, as
    BIP443 and BIP345 propose. An earlier iteration proposed
    OP_MULTI, which would make the next opcode take a variable number of
    stack items. A script could add up input amounts without a loop, and
    without an OP_VAULT-style deferred check. This overview
    leaves that opcode as an open question.

  • ● LN-Symmetry channel on signet: AaronZhang posted to
    Delving Bitcoin a third run of the same toy Alice/Bob/Carol
    LN-Symmetry channel, now that Bitcoin Inquisition 29.4 enables
    OP_TEMPLATEHASH. He used the scripts from Greg Sanders’s BOLT draft (see Newsletter #390) on signet:
    OP_TEMPLATEHASH (BIP446), OP_CHECKSIGFROMSTACK (CSFS), and OP_INTERNALKEY (BIP349). The update leaf is
    10 bytes, and the update witness stays a constant 143 bytes. He published an
    old state on purpose, and a newer update replaced it, skipping the state in
    between. Because OP_TEMPLATEHASH puts the transaction’s template hash on the
    stack, CSFS can check a signature over it without the witness providing the
    hash. He noted that this is just a toy channel: one key and no HTLCs.

  • ● Quantum landmines and vulnerable-coin auctions: Cory Fields posted to the Bitcoin-Dev mailing list about his thought experiments for
    post-quantum rules on legacy outputs, leaving the
    soft-fork mechanics for a later writeup. After Q-day, a legacy spend would
    have to bring matching quantum-safe collateral. Before Q-day, the owner hides
    a proof of knowledge of the legacy key inside an otherwise ordinary
    quantum-safe output holding a trivial amount. An attacker who spends the
    legacy output must add their own collateral and, lacking that proof, wait out
    a timeout (his example was 30 days). If the owner reveals the proof during the
    timeout, the owner takes both the legacy coins and the attacker’s collateral.
    He noted that this rewards planting bait and makes the count of vulnerable
    coins unobservable. He also sketched auctions for legacy coins that an
    attacker spends after that timeout, including a dollar auction he attributed
    to Neha Narula, and left the choice of design open.

    Conduition replied that someone who can plant a landmine
    could have moved the coins, so bait is the wrong incentive. Phlebas
    answered that an auction without the owner’s consent has
    confiscated the coins. Phlebas wrote that Fields’s approach is preferable to
    Hourglass but adds needless complexity and can force
    owners of legacy coins to reveal themselves.

  • ● Post-quantum recovery framework: Tadge Dryja posted
    to Delving Bitcoin a framework for consensus changes that add spending
    conditions to existing outputs if elliptic-curve security breaks. He was most
    interested in unprepared schemes, where the user has done nothing before Q-day
    and recovery does not depend on which post-quantum output type is chosen. An
    accidental secret, such as a key or script hidden in a hashed output, a
    BIP32 xpub, or a taproot internal key, is data that could be made public
    without losing control of the coins while elliptic-curve security holds, but
    that often has not been. An essential secret, such as a seed, confers control
    on its own. Requiring a BIP32 derivation for P2PK outputs from 2009-2011 would
    make those outputs unspendable, because BIP32 dates from 2012. He described a
    dilemma. Requiring essential secrets destroys some coins, and accepting
    accidental secrets lets some coins be stolen. Accepting either kind (a logical
    OR) is open to theft and equivalent to accidental-only, and requiring both (a
    logical AND) is open to destruction and equivalent to essential-only. One
    mitigation he described is eras: essential-secret proofs from Q-day until two
    years later, then accidental secrets. Under accidental secrets, a 2-of-3 P2WSH
    becomes a 1-of-3 if every signer has a cryptographically relevant quantum
    computer.

    duncan0k replied with a cut of his block 975,019
    census (see the item above). Setting P2TR aside from that census’s 35.6%
    headline, he counted 6,942,209 BTC, 34.5% of the 20,109,207 BTC unspent,
    in 47,351,492 outputs whose key or script is already onchain. He counted
    P2TR separately: the output key is onchain, while the internal key or
    script tree is not until a scriptpath spend.

  • ● SHRINCS security analysis: Mikhail Kudinov posted to the
    Bitcoin-Dev mailing list, on the thread that carried the SHRINCS draft (see
    Newsletter #421), a first security analysis of that scheme. The main paper argues that someone who can forge a
    signature can also break the hash function the scheme is built from (SHA256 in
    this case). A stateful signature and a stateless fallback share one public key
    and that same hash, so the two halves cannot be checked on their own and then
    added up. Because the signer chooses the shape of the stateful tree, the
    argument has to cover every tree shape. For the proposed parameters he puts
    the proven security at 121.4 to 122.7 bits against a classical computer. He
    wrote that a tighter bound on one step shared by both halves adds 34 bits to
    the classical figure for the stateless path, compared with generic bounds.
    Against a quantum computer the proof stops giving a guarantee at about 2^58.0
    to 2^59.2 hash calculations. Those figures rest on three unproven assumptions,
    and he wrote that the drafts have not had enough outside review. Kev is
    writing a machine-checked version of the proof, Security-Analysis #1.

  • ● Post-quantum signatures on the stack: Conduition posted
    to Delving Bitcoin about the 520-byte stack element limit and post-quantum
    signatures. No scheme available today, other than isogenies, fits in 520
    bytes. A draft BIP, which he said is being rewritten,
    would add a tapscript version that redefines the CHECKSIG
    opcodes and raises the limit to 6 kB. The worry is denial of service: a script
    can duplicate and hash a large element, which increases validation cost beyond
    anything possible under the 520-byte limit. He described the available
    options: split signatures into chunks under the current limit, make some
    opcodes reject oversized elements, optimize the interpreter (e.g. Bitcoin
    Core #36721
    ), use the BIP440 varops budget, or keep signatures on a
    separate stack. Anthony Towns replied that chunking is an
    unnecessary workaround, because tapscript’s limits can be raised, and that he
    prefers varops when scripts should handle non-trivial data. Julian Moik
    wrote that if the full restoration is too large, a
    post-quantum leaf could depend only on BIP440: introduce leaf 0xc2, raise the
    stack limits, and leave the restored opcodes for later. Pieter Wuille
    distinguished a short-term phase, which should change
    consensus, wallets, and workflow as little as possible, from a later
    migration. For that initial phase he called chunking silly and opcode
    blacklisting enough, because realistic policies do not need to duplicate,
    hash, or equality-check signatures.

  • ● NAEST for watch-only wallets and stealth addresses: nazirk posted to Delving Bitcoin an introduction to NAEST, a way of running
    the FAEST signature’s AES step more than once. He offered it as a replacement
    for the stateless signature in SHRINCS, which would also
    mean changing how that scheme formats its public key. He did not define an
    encoding for Bitcoin scripts using the new key. In the FAEST v3 spec he cited, the signer proves knowledge of an AES key. The scheme is
    stateless: one key can sign repeatedly without tracking a counter. For a
    watch-only wallet the scheme runs AES twice and shares the middle result as a
    viewing key. Another device can then recognize incoming payments, while
    spending still needs the underlying secret. He estimated that signature at
    about 7,210 bytes, about 39% larger than the 5,170-byte FAEST signature he
    compared it with. Anyone who learns the viewing key can recognize the wallet’s
    addresses. He compared the one-level setup with BIP32, noting that it has
    less capability: one viewing key sees every address under its root, and it
    does not create subtrees that can view or spend on their own. A further
    nesting level, loosely described, would let a branch have its own children. A
    stealth version uses a fresh key for each payment, somewhat like BIP352
    silent payments, except that the spender includes data in each payment for the
    receiver to know which key was used. The stealth variant signatures would be
    about 8,570 bytes. That data is a ciphertext whose size depends on the key
    encapsulation mechanism chosen, and it accompanies each new output instead of
    being part of the signature.

    Conduition replied that giving someone the viewing key lets
    them sign as if they held a normal FAEST key. He wrote that this is safe if
    the public key encoding records how many times the AES step was repeated.
    Jonas Nick replied that NAEST should be its own proposal.
    SHRINCS’s stateless signature is 5,777 bytes and already has draft proofs. By
    his count the NAEST signatures are 25% and 48% larger, and each stealth
    payment adds a ciphertext (1,088 bytes with ML-KEM-768) so the receiver can
    recover that output’s key. He also wrote that neither feature works alongside
    SHRINCS’s small stateful signature, so users would give up its 548-byte
    signatures. He compared NAEST to a longer-term design he called SHRINCS+, at
    about 3.3 kB and about 1.3 times the signing and verification cost of the
    SHRINCS stateless signature. nazirk agreed that
    NAEST’s watch-only and stealth features do not carry over to SHRINCS’s
    stateful signature, and wrote that a mature NAEST would warrant its own
    proposal.

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.14.7 and 0.14.8 are security releases for this
    LN node implementation. Version 0.14.7 fixes the splicing
    bugs described in the notable code section below. It also fixes bugs where
    invalid data sent by another node could leave an incoming HTLC
    unanswered until the upstream peer force closed the channel, or make Eclair
    force close a channel itself. Other fixes limit the memory used by early
    announcement_signatures messages and stop a payer from using a blinded
    path
    with negative fees to make an Eclair node that pays
    into that path send more downstream than it received. Version 0.14.8 fixes a
    crash in the HTLC cleanup process that Eclair runs after a restart and an
    exception when decrypting attribution data for
    paths longer than 20 hops. It also requires Bitcoin Core 32.x, which must be
    upgraded before Eclair. The releases credit Erick Cestari, Matt Corallo, and
    tcp-raw for responsible disclosures and
    strongly recommend upgrading because malicious nodes could exploit some of the
    fixed bugs. See the release notes for 0.14.7 and
    0.14.8 for details.

  • ● Core Lightning 26.12rc3 is the latest release candidate for the next major
    version of this popular LN node implementation, following the candidate
    described in Newsletter #432. Starting with this version,
    the project publishes one static, reproducibly built binary per architecture instead of separate binaries for each Linux
    distribution. It also includes the two Core Lightning changes described in the
    notable code section below.

Notable code and documentation changes

Notable recent changes in Bitcoin Core, Core
Lightning
, Eclair, LDK,
LND, libsecp256k1, Hardware Wallet
Interface (HWI)
, Rust Bitcoin, BTCPay
Server
, BDK, Bitcoin Improvement
Proposals (BIPs)
, Lightning BOLTs,
Lightning BLIPs, Bitcoin Inquisition, and BINANAs.

  • ● Bitcoin Core #34193 fixes a bug where a failed migration of a legacy
    wallet to a descriptor wallet could stop the node and
    leave a partially migrated wallet. Previously, migration deleted the original
    Berkeley DB (BDB) wallet file before writing the new SQLite database. If a
    write failed, it triggered an assertion that stopped Bitcoin Core. The user
    then had to restore the wallet manually from the backup that migration creates
    automatically. Bitcoin Core now writes the new database in a temporary
    directory and replaces the original file only after the new database is
    complete. If writing fails, the original file is left untouched and migration
    returns an error instead of stopping the node. If a later step fails, Bitcoin
    Core restores the backup automatically. An earlier migration bug could delete
    the wallet directory when a migration failed (see Newsletter #387).

  • ● Bitcoin Core #36895 reduces the memory used by transaction
    witnesses by storing each witness stack as a single serialized
    allocation instead of a separate allocation for every stack element.
    Previously, each element carried its own allocation overhead, so a transaction
    built with many tiny witness elements could occupy far more memory than its
    weight suggests. Ordinary transactions have only a few elements per input and
    benefit less. The author reports that the worst-case memory used by
    transactions kept in memory drops from roughly 28 to 1.6 bytes per weight
    unit. This lets the mempool hold more transactions within its -maxmempool
    limit. Accessing an individual element now requires parsing the witness from
    its start, and the author reports worst-case blocks taking 50 to 70 ms longer
    to validate.

  • ● Core Lightning #9684 fixes a bug where nodes with more than two eligible
    peer storage peers stopped updating the channel backups
    stored with those peers. Core Lightning sends an encrypted backup of all its
    channels to each peer when the peer connects. After channel openings,
    closings, and commitment revocations, it also sends an updated copy to two
    randomly selected peers (see Newsletter #355). Previously,
    the selection loop tested the number of eligible peers instead of the number
    already selected, so it selected no peers when more than two were eligible and
    these updates were never sent. Each peer’s backup was therefore only as recent
    as that peer’s last connection, and channels opened since then were missing
    from it. Core Lightning now selects two of the eligible peers at random. The
    bug affected releases since 25.05.

  • ● Core Lightning #9380 adds two RPCs that give the askrene pathfinding
    plugin (see Newsletter #316) information about channel
    liquidity. askrene-channel-observation records whether a payment attempt of
    a given amount through a channel failed, was accepted, or succeeded. Unlike
    the fixed bounds previously recorded with askrene-inform-channel, bounds
    learned from observations are relaxed when newer observations contradict them.
    The second RPC, askrene-constrain-channel, sets hard bounds that are never
    relaxed. xpay now reports observations automatically, and
    askrene-inform-channel is deprecated. This extends the use of successful
    payments described in Newsletter #418.

  • ● Eclair #3438 and #3444 fix two splicing
    bugs that a malicious channel peer could exploit. The first fixes the handling
    of a splice_init or tx_init_rbf message sent without first requesting
    quiescence. Eclair replied with
    tx_abort but then treated the channel as quiescent without a timeout, so it
    stopped signing, leaving a newly relayed HTLC unsigned until the
    peer acknowledged the abort. By delaying that acknowledgment, the peer could
    keep the HTLC unsigned past its upstream expiry and then fulfill it after the
    upstream HTLC had been refunded onchain. Eclair now disconnects such a peer,
    which lets it fail the HTLC back upstream (see Newsletter #421 for related hardening). The second fixes a case where a peer aborted a
    splice and then renegotiated the same splice transaction. A commitment signed
    during the first attempt, although later revoked, could still be broadcast
    once that transaction confirmed, but Eclair deleted its HTLC data on
    confirmation. It needs that data to claim HTLC outputs when penalizing a revoked commitment. Eclair now deletes only the HTLC data of
    commitments that predate the funding transaction that the splice spends.

  • ● LDK #5741 fixes another case where a forwarding node could lose funds when
    restarting with an older ChannelManager state than its ChannelMonitor (see
    Newsletters #392 and #426). This
    happens when the node stops after the monitor has saved new channel updates
    but before the manager is saved again. On restart, LDK force closes the
    affected channels. Previously, it also failed back upstream every HTLC that the older manager held in its holding cell, the queue of updates
    not yet sent to the downstream peer. However, the newer monitor could show
    that some of those HTLCs had since been committed downstream. The downstream
    peer could then claim them onchain after LDK had refunded the upstream peer.
    For payments the node sent itself, LDK could report a failure, which could
    prompt a retry that pays twice. LDK now leaves HTLCs known to the monitor for
    the monitor to resolve.

  • ● LDK #5745 fixes a bug where a one-block reorg could make LDK stop
    rebroadcasting and fee bumping two kinds of onchain transactions.
    LDK tracks each transaction it needs confirmed, tagged with the height of the
    block containing the output it spends. If a reorg removes that block, LDK
    drops the transaction because the output may no longer exist. Previously, two
    transactions were instead tagged with the chain tip at the time they were
    created. The first is the commitment transaction LDK broadcasts when force
    closing a channel, which spends the funding output. The second is an HTLC
    claim using a preimage learned after the commitment confirmed,
    which spends a commitment output. A reorg of only the tip block could then
    make LDK drop either transaction even though the output it spends remained
    confirmed. LDK now tags both with the height where that output confirmed.

  • ● LDK #5731 fixes a bug where an update_fee message from the channel
    opener could make LDK forget the feerate of a fee update already included in a
    commitment. BOLT2 allows the opener to send a new fee update before an
    earlier one has been fully committed (see Newsletter #418
    for a related LND change). Previously, LDK stored only one pending fee update,
    so the newer one replaced the committed one before LDK had finished applying
    it. LDK then kept using the feerate from before both updates and could produce
    signatures that an honest peer rejects, causing the channel to fail. On
    non-anchor channels, a malicious opener could also use
    the mismatch to push LDK’s exposure to trimmed HTLCs
    past its configured limit (see Newsletter #162). LDK now
    tracks announced and committed fee updates separately.

  • ● LND #11422 stops LND from opening or accepting new channels that use the
    static remote key commitment format (see Newsletter #67). Automatic channel type negotiation now requires both peers to support
    anchor outputs and fails otherwise, instead of falling
    back to static remote key. Existing static remote key channels are unaffected.
    The protocol.no-anchors configuration option no longer has any effect, so a
    node that set it now advertises anchor support. The release notes warn that
    applications using LDK with anchor negotiation disabled, the default in LDK
    0.2.8, cannot open new channels with an LND node that includes this change.
    LND previously stopped opening new legacy channels (see
    Newsletter #425), and Eclair removed support for both
    formats last year (see Newsletter #378).

  • ● LND #11632 implements the text rules added to BOLT1 by
    BOLTs #1341, which prohibit control characters, format characters, and a
    few other Unicode categories in text fields such as node aliases and invoice
    descriptions. LND now rejects BOLT11 invoices whose descriptions contain
    such characters, including newlines and the zero-width joiners used in some
    emoji. A reviewer noted that some other implementations still create
    descriptions containing newlines. LND also no longer creates invoices with
    newline descriptions, and it fails to start if the configured node alias
    breaks the rules. The PR also limits a cache of premature gossip messages by
    size rather than message count, since any connected peer could previously fill
    it with hundreds of megabytes.

  • ● BTCPay Server #7874 fixes a bug that could allow a pull payment to be paid
    twice over Lightning (see Newsletter #207 for Lightning pull
    payments). When reconciling in-progress Lightning payouts, BTCPay Server
    canceled any payout that had no proof of payment
    recorded. If BTCPay Server crashed after sending a payment but before saving
    its proof, the payout could be canceled even though it had been paid.
    Canceling a payout releases its amount back to the pull payment, where the
    receiver could claim it again. BTCPay Server now leaves such payouts in
    progress for the merchant to resolve.

Want more?

For more discussion about the topics mentioned in this newsletter, join us for
the weekly Bitcoin Optech Recap on Riverside.fm at
17:30 UTC on December 8. The
discussion is also recorded and will be available from our podcasts
page.


转载说明 / Republication notice

来源:Bitcoin Optech。本文按 MIT 许可转载;保留原文文字与链接,调整页面排版,未转载原图。标题如含主题导读,由新云社补充。 Original text and links retained; formatting adapted and images omitted. Any topic guide added to the title is editorial.

来源许可说明 · MIT License

The MIT License (MIT)

Copyright (c) 2018 Bitcoin Optech contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Share
Risk notice News, market information, data and other content published by 新云社 are for information and general reference only, and do not constitute investment, legal, tax or other professional advice.

Related Reading

Latest News

新云社 share card
Long-press image above → Save to Photos / Share
Pitch us Feedback