Re: [bitcoin-dev] BIP draft: OP_CHECKBLOCKATHEIGHT

2016-09-30 Thread Luke Dashjr via bitcoin-dev
On Saturday, October 01, 2016 4:01:04 AM Rusty Russell wrote: > Prefer a three-arg version (gbits-to-compare, blocknum, hash): > - If is 0 or > 256, invalid. > - If the hash length is not ( + 7) / 8, invalid. This means zero padding on-chain, which would be undesirable. Rather "at most" and have

Re: [bitcoin-dev] BIP draft: OP_CHECKBLOCKATHEIGHT

2016-09-30 Thread Rusty Russell via bitcoin-dev
Luke Dashjr via bitcoin-dev writes: > This BIP describes a new opcode (OP_CHECKBLOCKATHEIGHT) for the Bitcoin > scripting system to address reissuing bitcoin transactions when the coins > they > spend have been conflicted/double-spent. > > https://github.com/luke-jr/bips/blob/bip-cbah/bip-cbah

[bitcoin-dev] New BIP: Limiting excessive SignatureHash operation

2016-09-30 Thread Johnson Lau via bitcoin-dev
A new BIP is proposed to prevent excessive O(n^2) SignatureHash operation. https://github.com/jl2012/bips/blob/sighash/bip-sighash.mediawiki https://github.com/bitcoin/bitcoin/pull/8755 (Tight estimation) https://github.com/bitcoin/bitcoin/pull/8756 (Loose estimation) Two methods of sighash size