diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-03-27 20:16:45 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-03-27 20:20:55 +0200 |
commit | bf8fc7d352ad7451329a29e5d65e4136a7834a8c (patch) | |
tree | 61403cc4f9e5f009d6fe2fa93c60cf3255e54278 /src/compat/strnlen.cpp | |
parent | 2d97611c41d95d70538e877f5527a30e8e21f9fb (diff) | |
parent | d40f06a3da5e6b1fd065885b08513263fa930cb8 (diff) |
Merge #12714: Introduce interface for signing providers
d40f06a Introduce interface for signing providers (Pieter Wuille)
Pull request description:
`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).
This is a very early step towards the design in https://gist.github.com/sipa/125cfa1615946d0c3f3eec2ad7f250a2, separating the concern between deciding what outputs are ours and signing.
Tree-SHA512: d511b7b03eec0e513530db1d9ae5aacf6d0bfa1d3e1c03d06c5bde396bafb5824c4491b227d32bcda9288530caf49835da18e846ccf66538d6c0cc6ae27291c9
Diffstat (limited to 'src/compat/strnlen.cpp')
0 files changed, 0 insertions, 0 deletions