diff options
| author | Pieter Wuille <[email protected]> | 2018-03-17 19:19:09 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2018-03-25 13:26:57 -0700 |
| commit | d40f06a3da5e6b1fd065885b08513263fa930cb8 (patch) | |
| tree | 80e3a485e4d9ecdc7a891ae3fd88f5fbd7011326 /src/httpserver.cpp | |
| parent | Merge #12542: Remove redundant includes. Conform to header include guidelines. (diff) | |
| download | discoin-d40f06a3da5e6b1fd065885b08513263fa930cb8.tar.xz discoin-d40f06a3da5e6b1fd065885b08513263fa930cb8.zip | |
Introduce interface for signing providers
CKeyStore is a rich interface that provides many features, including knowledge
of scripts and pubkeys for solving, private keys for signing, in addition to
watch-only keys and scripts, and distinguishing lack of keys from them just
being encrypted.
The signing logic in script/sign does not actually need most of these features.
Here we introduce a simpler interface (SigningProvider) which *only* provides
keys and scripts. This is actually sufficient for signing.
In addtion, we swap the dependency between keystore and script/sign
(keystore now depends on script/script with CKeyStore deriving from
SigningProvider, rather than CKeyStore being the interface that signing
relies on).
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions