bitcoin/bitcoin — pull request #3975 by maraoz (2014-03-28 19:33:21+00:00)
Title: Add sighash tests from data file

This adds SignatureHash tests derived from a data file, instead of generating random transactions like the existing test. It allows other libraries (in my case https://github.com/bitpay/bitcore) to import the test vectors knowing they pass in Bitcoin Core. This is my first contribution (and the first C++ code I wrote), so please let me know if it needs corrections.