aboutsummaryrefslogtreecommitdiff
path: root/src/test/sighash_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Declare SignatureHash() in script.hjtimon2014-08-011-2/+1
|
* move rand functions from util to new random.h/.cppPhilip Kaufmann2014-07-091-8/+8
|
* Add CMutableTransaction and make CTransaction immutable.Pieter Wuille2014-06-211-3/+3
| | | | | In addition, introduce a cached hash inside CTransaction, to prevent recalculating it over and over again.
* add checks for deserialization errorsManuel Araoz2014-03-311-16/+25
|
* Add code generating data/sighash.json test dataManuel Araoz2014-03-311-3/+30
|
* Add sighash tests from data fileManuel Araoz2014-03-311-3/+57
|
* Add licenses for tests and test dataWladimir J. van der Laan2014-03-181-0/+4
| | | | | | | | - Add license headers to source files (years based on commit dates) in `src/test` as well as `qa` - Add `README.md` to `src/test/data` specifying MIT license Fixes #3848
* Inline signature serializerPieter Wuille2013-09-281-0/+120
Instead of building a full copy of a CTransaction being signed, and then modifying bits and pieces until its fits the form necessary for computing the signature hash, use a wrapper serializer that only serializes the necessary bits on-the-fly. This makes it easier to see which data is actually being hash, reduces load on the heap, and also marginally improves performances (around 3-4us/sigcheck here). The performance improvements are much larger for large transactions, though. The old implementation of SignatureHash is moved to a unit tests, to test whether the old and new algorithm result in the same value for randomly-constructed transactions.