Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
/** An interface to be implemented by keystores that support signing. */ | /** An interface to be implemented by keystores that support signing. */ | ||||
class SigningProvider { | class SigningProvider { | ||||
public: | public: | ||||
virtual ~SigningProvider() {} | virtual ~SigningProvider() {} | ||||
virtual bool GetCScript(const CScriptID &scriptid, CScript &script) const { | virtual bool GetCScript(const CScriptID &scriptid, CScript &script) const { | ||||
return false; | return false; | ||||
} | } | ||||
virtual bool HaveCScript(const CScriptID &scriptid) const { return false; } | |||||
virtual bool GetPubKey(const CKeyID &address, CPubKey &pubkey) const { | virtual bool GetPubKey(const CKeyID &address, CPubKey &pubkey) const { | ||||
return false; | return false; | ||||
} | } | ||||
virtual bool GetKey(const CKeyID &address, CKey &key) const { | virtual bool GetKey(const CKeyID &address, CKey &key) const { | ||||
return false; | return false; | ||||
} | } | ||||
virtual bool HaveKey(const CKeyID &address) const { return false; } | |||||
virtual bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const { | virtual bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const { | ||||
return false; | return false; | ||||
} | } | ||||
}; | }; | ||||
extern const SigningProvider &DUMMY_SIGNING_PROVIDER; | extern const SigningProvider &DUMMY_SIGNING_PROVIDER; | ||||
class HidingSigningProvider : public SigningProvider { | class HidingSigningProvider : public SigningProvider { | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |