Gregory Maxwell [ARCHIVE] on Nostr: 📅 Original date posted:2017-04-05 📝 Original message:On Wed, Apr 5, 2017 at ...
📅 Original date posted:2017-04-05
📝 Original message:On Wed, Apr 5, 2017 at 11:05 PM, theymos via bitcoin-dev
<bitcoin-dev at lists.linuxfoundation.org> wrote:
> This seems to be a serious security problem. Would it be possible to have
> a flag-day softfork included in Bitcoin Core as soon as 0.14.1? I think that a trigger
> 3-6 months from release should be sufficient for enough of the economy to upgrade,
> given the severity of the issue.
Not 0.14.1 because that is in RC already and will hopefully be out in a week.
I think the speed of adoption depends a lot of the level of support
from the community. I don't believe there are any technical hurdles to
implementing this relatively quickly (and I specifically propose using
the users choice of the segwit commitment or a modified form in order
to lower the technical complexity and risk).
> BIP 141 says that the the commitment is optional if there are no SegWit transactions in
> the block, so will today's SegWit-ready miners always produce it even when optional
> according to BIP 141, as required by this softfork?
This is the default behavior as of 0.13.2, but I haven't gone out to
measure this which is why the backwards compatibility section of the
BIP isn't written yet.
While I'm posting, I've had a dozen off-list emails that presented me
with some FAQ:
Many people asked what other protocol upgrades beyond segwit could run
into the same incompatibility.
Many proposed improvements to Bitcoin require additional
transaction-dependent commitment data.
Examples include:
(1) Segwit.
(2) UTXO commitments. (non-delayed, at least)
(3) Committed Bloom filters
(4) Committed address indexes
(5) STXO commitments (non-delayed).
(6) Weak blocks
(7) Most kinds of fraud proofs
-- to state a few.
Unfortunately, putting *any* commitment to data dependent on the right
hand side of the hash tree in the left hand side (e.g. coinbase) means
a massive increase in the computation required for covert boosting,
because it means you can't use the left+right side combinations to
eliminate most of the hashing.
It's plausible, in fact, that this extra computation could completely
nullify the ASICBOOST advantage-- though this depends a lot on the
fine details of the implementation.
This proposal does not itself propose nullifying ASICBOOST entirely,
it proposes severely handicapping the covert form of it, and
eliminating the differential advantage for boosting miners related to
the use of transaction-dependent commitments.
Basically there are two completely separate concerns: that boosting
can produce a monopoly advantage which could be severely harmful to
the ecosystem, and that the efficient implementation of _covert_
boosting can severely harm many useful protocol improvements. My
proposal only addresses the second concern, by (I believe) completely
leveling the playing field so that opposing commitments will not break
boosting any worse, and by making covert boosting less appealing in
general.
Use of the segwit-style commitment even in non-segwit blocks is sufficient
because the segwit commitment commits to all transactions (except
the coinbase) and not just segwit ones.
(It was designed this way so that lite clients that needed witness
data could work with just one tree).
Published at
2023-06-07 17:59:14Event JSON
{
"id": "eca5bd74b5e642ae598e42d00fb5b371bb9ddd2cc0b825fd272545fb1c3a21c6",
"pubkey": "4aa6cf9aa5c8e98f401dac603c6a10207509b6a07317676e9d6615f3d7103d73",
"created_at": 1686160754,
"kind": 1,
"tags": [
[
"e",
"ad36e2a7543163ffef3218fa3d55149ec67fbe14dd109a89d2940c12712bdc10",
"",
"root"
],
[
"e",
"9cb51bfac075d58104263bc12dbda784d82f22694ed0cc439bdf541ec268c8ac",
"",
"reply"
],
[
"p",
"7b17a27b7a85e67ba7923c452fbb08ed536244f667a20168dfc3172a83c992df"
]
],
"content": "📅 Original date posted:2017-04-05\n📝 Original message:On Wed, Apr 5, 2017 at 11:05 PM, theymos via bitcoin-dev\n\u003cbitcoin-dev at lists.linuxfoundation.org\u003e wrote:\n\u003e This seems to be a serious security problem. Would it be possible to have\n\u003e a flag-day softfork included in Bitcoin Core as soon as 0.14.1? I think that a trigger\n\u003e 3-6 months from release should be sufficient for enough of the economy to upgrade,\n\u003e given the severity of the issue.\n\nNot 0.14.1 because that is in RC already and will hopefully be out in a week.\n\nI think the speed of adoption depends a lot of the level of support\nfrom the community. I don't believe there are any technical hurdles to\nimplementing this relatively quickly (and I specifically propose using\nthe users choice of the segwit commitment or a modified form in order\nto lower the technical complexity and risk).\n\n\u003e BIP 141 says that the the commitment is optional if there are no SegWit transactions in\n\u003e the block, so will today's SegWit-ready miners always produce it even when optional\n\u003e according to BIP 141, as required by this softfork?\n\nThis is the default behavior as of 0.13.2, but I haven't gone out to\nmeasure this which is why the backwards compatibility section of the\nBIP isn't written yet.\n\n\nWhile I'm posting, I've had a dozen off-list emails that presented me\nwith some FAQ:\n\nMany people asked what other protocol upgrades beyond segwit could run\ninto the same incompatibility.\n\nMany proposed improvements to Bitcoin require additional\ntransaction-dependent commitment data.\n\nExamples include:\n\n(1) Segwit.\n(2) UTXO commitments. (non-delayed, at least)\n(3) Committed Bloom filters\n(4) Committed address indexes\n(5) STXO commitments (non-delayed).\n(6) Weak blocks\n(7) Most kinds of fraud proofs\n-- to state a few.\n\nUnfortunately, putting *any* commitment to data dependent on the right\nhand side of the hash tree in the left hand side (e.g. coinbase) means\na massive increase in the computation required for covert boosting,\nbecause it means you can't use the left+right side combinations to\neliminate most of the hashing.\n\nIt's plausible, in fact, that this extra computation could completely\nnullify the ASICBOOST advantage-- though this depends a lot on the\nfine details of the implementation.\n\nThis proposal does not itself propose nullifying ASICBOOST entirely,\nit proposes severely handicapping the covert form of it, and\neliminating the differential advantage for boosting miners related to\nthe use of transaction-dependent commitments.\n\nBasically there are two completely separate concerns: that boosting\ncan produce a monopoly advantage which could be severely harmful to\nthe ecosystem, and that the efficient implementation of _covert_\nboosting can severely harm many useful protocol improvements. My\nproposal only addresses the second concern, by (I believe) completely\nleveling the playing field so that opposing commitments will not break\nboosting any worse, and by making covert boosting less appealing in\ngeneral.\n\nUse of the segwit-style commitment even in non-segwit blocks is sufficient\nbecause the segwit commitment commits to all transactions (except\nthe coinbase) and not just segwit ones.\n(It was designed this way so that lite clients that needed witness\ndata could work with just one tree).",
"sig": "8ca300fb737034165924539da913ad6058c6ab0c32febbe24b8a4d1af3ea567850a52a3bfcc45b14b42aab49ccd1235fc5d82e7cd0a71ed223b26644fcdc9dbd"
}