aboutsummaryrefslogtreecommitdiff
path: root/.tx
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2018-03-17 19:19:09 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2018-03-25 13:26:57 -0700
commitd40f06a3da5e6b1fd065885b08513263fa930cb8 (patch)
tree80e3a485e4d9ecdc7a891ae3fd88f5fbd7011326 /.tx
parentaf20f9b1d485582b8c8aa8294bac4f2c540246d2 (diff)
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 '.tx')
0 files changed, 0 insertions, 0 deletions