Re: [bitcoin-dev] Disallow insecure use of SIGHASH_SINGLE

2018-06-05 Thread Peter Todd via bitcoin-dev
On Fri, Jun 01, 2018 at 02:53:01AM +0800, Johnson Lau via bitcoin-dev wrote: > I’ve made a PR to add a new policy to disallow using SIGHASH_SINGLE without > matched output: > > https://github.com/bitcoin/bitcoin/pull/13360 > > Signature of this form is insecure, as it commits to no output while

Re: [bitcoin-dev] Disallow insecure use of SIGHASH_SINGLE

2018-06-05 Thread Peter Todd via bitcoin-dev
On Tue, Jun 05, 2018 at 07:17:52PM -0500, Chris Stewart via bitcoin-dev wrote: > Do you have any thoughts on expanding this to SIGHASH_NONE? Perhaps someone > else on the dev list can enlighten me, but is there a current use case for > SIGHASH_NONE that would suffer from it being non standard? SIG

Re: [bitcoin-dev] Disallow insecure use of SIGHASH_SINGLE

2018-06-05 Thread Chris Stewart via bitcoin-dev
Do you have any thoughts on expanding this to SIGHASH_NONE? Perhaps someone else on the dev list can enlighten me, but is there a current use case for SIGHASH_NONE that would suffer from it being non standard? -Chris On Thu, May 31, 2018 at 1:53 PM, Johnson Lau via bitcoin-dev < bitcoin-dev@list

[bitcoin-dev] Disallow insecure use of SIGHASH_SINGLE

2018-05-31 Thread Johnson Lau via bitcoin-dev
I’ve made a PR to add a new policy to disallow using SIGHASH_SINGLE without matched output: https://github.com/bitcoin/bitcoin/pull/13360 Signature of this form is insecure, as it commits to no output while users might think it commits to one. It is even worse in non-segwit scripts, which is e