diff options
| author | Pieter Wuille <[email protected]> | 2018-07-19 17:25:21 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2018-08-13 08:46:23 -0700 |
| commit | 84f1f1bfdf900cd28099e428441aa42f9d11a0ed (patch) | |
| tree | f207338b3689a063f982553eafb311055fbaaa1d /src/script/sign.h | |
| parent | Introduce KeyOriginInfo for fingerprint + path (diff) | |
| download | discoin-84f1f1bfdf900cd28099e428441aa42f9d11a0ed.tar.xz discoin-84f1f1bfdf900cd28099e428441aa42f9d11a0ed.zip | |
Make SigningProvider expose key origin information
Diffstat (limited to 'src/script/sign.h')
| -rw-r--r-- | src/script/sign.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/sign.h b/src/script/sign.h index e0668f8c5..323fe70f3 100644 --- a/src/script/sign.h +++ b/src/script/sign.h @@ -34,6 +34,7 @@ public: virtual bool GetCScript(const CScriptID &scriptid, CScript& script) const { return false; } virtual bool GetPubKey(const CKeyID &address, CPubKey& pubkey) const { return false; } virtual bool GetKey(const CKeyID &address, CKey& key) const { return false; } + virtual bool GetKeyOrigin(const CKeyID& id, KeyOriginInfo& info) const { return false; } }; extern const SigningProvider& DUMMY_SIGNING_PROVIDER; @@ -47,6 +48,7 @@ public: PublicOnlySigningProvider(const SigningProvider* provider) : m_provider(provider) {} bool GetCScript(const CScriptID &scriptid, CScript& script) const; bool GetPubKey(const CKeyID &address, CPubKey& pubkey) const; + bool GetKeyOrigin(const CKeyID& keyid, KeyOriginInfo& info) const; }; struct FlatSigningProvider final : public SigningProvider |