diff options
| author | Pieter Wuille <[email protected]> | 2017-11-30 16:48:41 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2018-01-03 05:43:06 -0800 |
| commit | 30a27dc5b18a3ab82a9768710b24d4e7e9661658 (patch) | |
| tree | 79f7a63cf8fe7ddc821a529ac7a20e0359184dcf /src/keystore.h | |
| parent | Improve witness destination types and use them more (diff) | |
| download | discoin-30a27dc5b18a3ab82a9768710b24d4e7e9661658.tar.xz discoin-30a27dc5b18a3ab82a9768710b24d4e7e9661658.zip | |
Expose method to find key for a single-key destination
Diffstat (limited to 'src/keystore.h')
| -rw-r--r-- | src/keystore.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/keystore.h b/src/keystore.h index 4e6d8e8a2..0f3b5706f 100644 --- a/src/keystore.h +++ b/src/keystore.h @@ -78,4 +78,7 @@ public: typedef std::vector<unsigned char, secure_allocator<unsigned char> > CKeyingMaterial; typedef std::map<CKeyID, std::pair<CPubKey, std::vector<unsigned char> > > CryptedKeyMap; +/** Return the CKeyID of the key involved in a script (if there is a unique one). */ +CKeyID GetKeyForDestination(const CKeyStore& store, const CTxDestination& dest); + #endif // BITCOIN_KEYSTORE_H |