51 Commits (e9ca4280f3abb8b2b6fa35a41e881996278ebfff)

Author SHA1 Message Date
Cory Fields e9ca4280f3 script: add ToByteVector() for converting anything with begin/end 8 years ago
Cory Fields 066e2a1403 script: move CScriptID to standard.h and add a ctor for creating them from CScripts 8 years ago
Pieter Wuille 9df9cf5a9f Make SCRIPT_VERIFY_STRICTENC compatible with BIP62 8 years ago
Pieter Wuille 2c930d932b Prettify JSON tests and minimize diffs 8 years ago
jtimon 54510f2672 DRY: Avoid repetitions in script_test 8 years ago
Pieter Wuille e790c370b5 Replace SCRIPT_VERIFY_NOCACHE by flag directly to checker 8 years ago
Pieter Wuille c7829ea797 Abstract out SignatureChecker 8 years ago
Pieter Wuille 68af7d02cf Fix vector out of bounds in script tests 8 years ago
Pieter Wuille 8138cbea3c Add automatic script test generation, and actual checksig tests 8 years ago
Pieter Wuille 76ec867796 Use actually valid transactions for script tests 8 years ago
Pieter Wuille 0be990ba34 Move CTxDestination from script/script to script/standard 8 years ago
jtimon 6dcfda2dc4 Don't pass nHashType to EvalScript nor CheckSig 8 years ago
jtimon 2b23a87599 Don't pass nHashType to VerifyScript 8 years ago
Pieter Wuille 6022b5dc6b Make script_{valid,invalid}.json validation flags configurable 8 years ago
jtimon e088d65acb Separate script/sign 8 years ago
jtimon cbd22a50c4 Move CScript class and dependencies to script/script 8 years ago
jtimon 86dbeea2cd Rename script.h/.cpp to scriptutils.h/.cpp (plus remove duplicated includes) 8 years ago
Peter Todd aa41ac216e
Test IsPushOnly() with invalid push 8 years ago
jtimon f5745fa52a Declare SignatureHash() in script.h 8 years ago
Jeff Garzik b2aeaa7939 Move ParseScript() helper, becoming accessible outside src/test/ 8 years ago
Pieter Wuille 4949004d68 Add CMutableTransaction and make CTransaction immutable. 9 years ago
Wladimir J. van der Laan 3fc6846181 Add licenses for tests and test data 9 years ago
Peter Todd b41e594773
Fix script test handling of empty scripts 9 years ago
Pieter Wuille 87fe71e1fc Add HasCanonicalPushes(), and use it in IsStandardTx 9 years ago
Brandon Dahler 51ed9ec971 Cleanup code using forward declarations. 9 years ago
Jeff Garzik 0db9a805bd Revert "Switch to using raw_utf8" 9 years ago
Pieter Wuille f5857e5cb5 Inline signature serializer 9 years ago
Cory Fields 152e51c7af included-tests: generate binary data from test files for inclusion into test binaries 9 years ago
Luke Dashjr 1e9d3b1392 Bugfix: Since test_bitcoin is being built and run inside src/test/, try using relative directories from that point 9 years ago
Peter Todd 214d45b6b9
Document and test OP_RESERVED weirdness 9 years ago
constantined 2ecb7555a9 Switch to using raw_utf8 9 years ago
Pieter Wuille dfa23b94c2 CSecret/CKey -> CKey/CPubKey split/refactor 10 years ago
Pieter Wuille 99d0d0f356 Introduce script verification flags 10 years ago
Philip Kaufmann 729b180686 change blockchain -> block chain (spelling) 10 years ago
Pieter Wuille 58bc86e37f Check for canonical public keys and signatures 10 years ago
Gavin Andresen a2709fad7f Implement raw transaction RPC calls 11 years ago
Gavin Andresen 6b8a17119e Lots more Script unit test cases. 11 years ago
Gavin Andresen f04017f702 More CScript unit tests. 11 years ago
Gavin Andresen 9e71a5cd23 Define TEST_DATA_DIR so unit tests can be run from any current working directory 11 years ago
Gavin Andresen 8449a8788a Data-drive script evaluation unit tests. 11 years ago
Pieter Wuille 0d56f11ada Fix tests after 38067c18 11 years ago
Gavin Andresen 922e8e2929 Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16). 11 years ago
Gavin Andresen 2a45a494b0 Use block times for 'hard' OP_EVAL switchover, and refactored EvalScript 11 years ago
Gavin Andresen e679ec969c OP_EVAL implementation 11 years ago
Gavin Andresen 1466b8b78a Rework unit tests so test_bitcoin.cpp does not #include them all 11 years ago
Gavin Andresen 829e21733b CHECKMULTISIG unit tests. 11 years ago
Vegard Nossum a8330e0049 Add a file for script tests 11 years ago