Changeset View
Changeset View
Standalone View
Standalone View
src/script/sign.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | public: | ||||
bool GetPubKey(const CKeyID &keyid, CPubKey &pubkey) const override; | bool GetPubKey(const CKeyID &keyid, CPubKey &pubkey) const override; | ||||
bool GetKey(const CKeyID &keyid, CKey &key) const override; | bool GetKey(const CKeyID &keyid, CKey &key) const override; | ||||
bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const override; | bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const override; | ||||
}; | }; | ||||
struct FlatSigningProvider final : public SigningProvider { | struct FlatSigningProvider final : public SigningProvider { | ||||
std::map<CScriptID, CScript> scripts; | std::map<CScriptID, CScript> scripts; | ||||
std::map<CKeyID, CPubKey> pubkeys; | std::map<CKeyID, CPubKey> pubkeys; | ||||
std::map<CKeyID, KeyOriginInfo> origins; | std::map<CKeyID, std::pair<CPubKey, KeyOriginInfo>> origins; | ||||
std::map<CKeyID, CKey> keys; | std::map<CKeyID, CKey> keys; | ||||
bool GetCScript(const CScriptID &scriptid, CScript &script) const override; | bool GetCScript(const CScriptID &scriptid, CScript &script) const override; | ||||
bool GetPubKey(const CKeyID &keyid, CPubKey &pubkey) const override; | bool GetPubKey(const CKeyID &keyid, CPubKey &pubkey) const override; | ||||
bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const override; | bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const override; | ||||
bool GetKey(const CKeyID &keyid, CKey &key) const override; | bool GetKey(const CKeyID &keyid, CKey &key) const override; | ||||
}; | }; | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |