Branch: refs/heads/master
Home: https://github.com/conformal/btcscript
Commit: 8eead5217d6af35b9def1558fc0529bac3af5067
https://github.com/conformal/btcscript/commit/8eead5217d6af35b9def1558fc0529bac3af5067
Author: David Hill <[email protected]>
Date: 2013-10-25 (Fri, 25 Oct 2013)
Changed paths:
M opcode.go
M opcode_test.go
M script.go
M script_test.go
M test_coverage.txt
Log Message:
-----------
Add flag bitmask to NewScript for canonical sig checks.
This removes the bip16 bool from NewScript and adds it to flags (with
the constant ScriptBip16), and also adds a new flag,
ScriptCanonicalSignatures, which will call btcec.ParseDERSignature
parsing a signature during an Execute. This is needed to emulate
bitcoind behavior, as bitcoind performs canonical signature validation
(DER format) in some places (like mempool acceptance) but not others
(like block validation).
Updated tests and test coverage file to reflect changes.