Re: [bitcoin-dev] Relaxing minimum non-witness transaction size policy restriction
As there has been some feedback to the same effect, I've opened a competing PR for separate evaluation here: https://github.com/bitcoin/bitcoin/pull/26398 Please give feedback if anyone has any. On Thu, Oct 20, 2022 at 8:13 PM Peter Todd wrote: > On Thu, Oct 20, 2022 at 08:07:54PM -0400, Greg Sanders wrote: > > I don't doubt the use case(it's why I opened the issue!). I didn't want > the > > proposal to die in case people found it odd that 61, 62, 63, but not 64 > > bytes ended up being broadcast able. > > > > Perhaps this is not an issue, especially since this isn't a consensus > > change like the Great Consensus Cleanup. Willing to change my proposal > and > > PR if people have no strong objections. > > I think it's fine if we only restrict 64 bytes. We have a specific reason > to do > that and it's ok if we just tell people that. Only fairly-technical > use-cases > are affected anyway. > > -- > https://petertodd.org 'peter'[:-1]@petertodd.org > ___ bitcoin-dev mailing list bitcoin-dev@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
Re: [bitcoin-dev] Relaxing minimum non-witness transaction size policy restriction
On Thu, Oct 20, 2022 at 08:07:54PM -0400, Greg Sanders wrote: > I don't doubt the use case(it's why I opened the issue!). I didn't want the > proposal to die in case people found it odd that 61, 62, 63, but not 64 > bytes ended up being broadcast able. > > Perhaps this is not an issue, especially since this isn't a consensus > change like the Great Consensus Cleanup. Willing to change my proposal and > PR if people have no strong objections. I think it's fine if we only restrict 64 bytes. We have a specific reason to do that and it's ok if we just tell people that. Only fairly-technical use-cases are affected anyway. -- https://petertodd.org 'peter'[:-1]@petertodd.org signature.asc Description: PGP signature ___ bitcoin-dev mailing list bitcoin-dev@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
Re: [bitcoin-dev] Relaxing minimum non-witness transaction size policy restriction
I don't doubt the use case(it's why I opened the issue!). I didn't want the proposal to die in case people found it odd that 61, 62, 63, but not 64 bytes ended up being broadcast able. Perhaps this is not an issue, especially since this isn't a consensus change like the Great Consensus Cleanup. Willing to change my proposal and PR if people have no strong objections. Greg On Thu, Oct 20, 2022, 7:21 PM Peter Todd wrote: > On Tue, Oct 11, 2022 at 08:50:07AM -0400, Greg Sanders via bitcoin-dev > wrote: > > Hello fellow Bitcoiners, > > > > After looking at some fairly exotic possible transaction types, I ran > into > > the current policy limit requiring transactions to be 85 non-witness > > serialized bytes. This was introduced as a covert fix to policy fix > > for CVE-2017-12842. Later the real motivation was revealed, but the > > "reasonable" constant chosen was not. > > > > I'd like to propose relaxing this to effectively the value BlueMatt > > proposed in the Great Consensus Cleanup: 65 non-witness bytes. This would > > allow a single input, single output transaction with 4 bytes of OP_RETURN > > padding, rather than padding out 21 bytes to get to p2wpkh size. > > > > The alternative would be to also allow anything below 64 non-witness > bytes, > > but this seems fraught with footguns for a few bytes gain. > > What footguns exactly? Spending a single input to OP_RETURN with no > payload is > a valid use to get rid of dust in the UTXO set. > > -- > https://petertodd.org 'peter'[:-1]@petertodd.org > ___ bitcoin-dev mailing list bitcoin-dev@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
Re: [bitcoin-dev] Relaxing minimum non-witness transaction size policy restriction
On Tue, Oct 11, 2022 at 08:50:07AM -0400, Greg Sanders via bitcoin-dev wrote: > Hello fellow Bitcoiners, > > After looking at some fairly exotic possible transaction types, I ran into > the current policy limit requiring transactions to be 85 non-witness > serialized bytes. This was introduced as a covert fix to policy fix > for CVE-2017-12842. Later the real motivation was revealed, but the > "reasonable" constant chosen was not. > > I'd like to propose relaxing this to effectively the value BlueMatt > proposed in the Great Consensus Cleanup: 65 non-witness bytes. This would > allow a single input, single output transaction with 4 bytes of OP_RETURN > padding, rather than padding out 21 bytes to get to p2wpkh size. > > The alternative would be to also allow anything below 64 non-witness bytes, > but this seems fraught with footguns for a few bytes gain. What footguns exactly? Spending a single input to OP_RETURN with no payload is a valid use to get rid of dust in the UTXO set. -- https://petertodd.org 'peter'[:-1]@petertodd.org signature.asc Description: PGP signature ___ bitcoin-dev mailing list bitcoin-dev@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
Re: [bitcoin-dev] Relaxing minimum non-witness transaction size policy restriction
Propagation of these kinds of transactions will be hampered until becomes 10%+ of the network or so, like any other policy relaxation. On Tue, Oct 11, 2022 at 9:08 AM KING JAMES HRMH wrote: > I am reading between the lines, wouldn't that mean an older client like > v0.18 may not be able to receive a transaction from a newer client if it > has to validate 85 non-witness serialized bytes? If so we should not > concern but retain the backward compatibility especially since this was for > a vulnerability? I have not checked to code to see what it does. > > KING JAMES HRMH > > Get Outlook for Android <https://aka.ms/AAb9ysg> > -- > *From:* bitcoin-dev on > behalf of Greg Sanders via bitcoin-dev < > bitcoin-dev@lists.linuxfoundation.org> > *Sent:* Tuesday, October 11, 2022 11:50:07 PM > *To:* Bitcoin Dev > *Subject:* [bitcoin-dev] Relaxing minimum non-witness transaction size > policy restriction > > Hello fellow Bitcoiners, > > After looking at some fairly exotic possible transaction types, I ran into > the current policy limit requiring transactions to be 85 non-witness > serialized bytes. This was introduced as a covert fix to policy fix > for CVE-2017-12842. Later the real motivation was revealed, but the > "reasonable" constant chosen was not. > > I'd like to propose relaxing this to effectively the value BlueMatt > proposed in the Great Consensus Cleanup: 65 non-witness bytes. This would > allow a single input, single output transaction with 4 bytes of OP_RETURN > padding, rather than padding out 21 bytes to get to p2wpkh size. > > The alternative would be to also allow anything below 64 non-witness > bytes, but this seems fraught with footguns for a few bytes gain. > > The PR is here with more relevant background and alternatives included in > the thread: > https://github.com/bitcoin/bitcoin/pull/26265 > > Please let us know if there's a fundamental issue with this approach, or > any other feedback. > > Best, > Greg > ___ bitcoin-dev mailing list bitcoin-dev@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev
[bitcoin-dev] Relaxing minimum non-witness transaction size policy restriction
Hello fellow Bitcoiners, After looking at some fairly exotic possible transaction types, I ran into the current policy limit requiring transactions to be 85 non-witness serialized bytes. This was introduced as a covert fix to policy fix for CVE-2017-12842. Later the real motivation was revealed, but the "reasonable" constant chosen was not. I'd like to propose relaxing this to effectively the value BlueMatt proposed in the Great Consensus Cleanup: 65 non-witness bytes. This would allow a single input, single output transaction with 4 bytes of OP_RETURN padding, rather than padding out 21 bytes to get to p2wpkh size. The alternative would be to also allow anything below 64 non-witness bytes, but this seems fraught with footguns for a few bytes gain. The PR is here with more relevant background and alternatives included in the thread: https://github.com/bitcoin/bitcoin/pull/26265 Please let us know if there's a fundamental issue with this approach, or any other feedback. Best, Greg ___ bitcoin-dev mailing list bitcoin-dev@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev