bitcoin/src/script
Wladimir J. van der Laan 8480d41e0f
Merge #12803: Make BaseSignatureCreator a pure interface
be67831 Make DummySignatureCreator a singleton (Pieter Wuille)
190b8d2 Make BaseSignatureCreator a pure interface (Pieter Wuille)

Pull request description:

  * Removes the `m_provider` field from `BaseSignatureCreator`. Instead both a `SigningProvider` (which provides keys and scripts) and a `BaseSignatureCreator` (which implements the transaction-specific (or other) signing logic) are passed into and down in `ProduceSignature`, making the two concepts orthogonal.
  * Makes `BaseSignatureCreator` a pure interface without constructor, making it easier to implement new derivations of it (for example for message signing).
  * As `DummySignatureCreator` now becomes a stateless object, turn it into a singleton `DUMMY_SIGNATURE_CREATOR`.

Tree-SHA512: 5f1f4512e4ea7d02a31df7b9ede55008efa716c5b74a2630ca1c2fc6599584d8bf5f5641487266127f4b3788033803539fbd22b03ef1219c83c10da2d3da3dcd
2018-04-12 22:55:56 +02:00
..
bitcoinconsensus.cpp Support deserializing into temporaries 2018-03-13 17:04:31 -07:00
bitcoinconsensus.h Fix missing or inconsistent include guards 2018-03-22 16:23:04 +01:00
interpreter.cpp Extract consts for WITNESS_V0 hash sizes 2018-04-10 20:13:32 -07:00
interpreter.h Extract consts for WITNESS_V0 hash sizes 2018-04-10 20:13:32 -07:00
ismine.cpp Make DummySignatureCreator a singleton 2018-04-10 09:29:17 -07:00
ismine.h scripted-diff: Convert 11 enums into scoped enums (C++11) 2018-03-09 15:03:40 +01:00
script.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
script.h Support serialization as another type without casting 2018-03-20 17:08:06 -07:00
script_error.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
script_error.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
sigcache.cpp Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
sigcache.h Increment MIT Licence copyright header year on files modified in 2017 2018-01-03 02:26:56 +09:00
sign.cpp Make DummySignatureCreator a singleton 2018-04-10 09:29:17 -07:00
sign.h Make DummySignatureCreator a singleton 2018-04-10 09:29:17 -07:00
standard.cpp Extract consts for WITNESS_V0 hash sizes 2018-04-10 20:13:32 -07:00
standard.h Merge #11403: SegWit wallet support 2018-01-10 20:55:41 -10:00