MCPcopy Create free account
hub / github.com/ElementsProject/elements / HidingSigningProvider

Class HidingSigningProvider

src/script/signingprovider.h:56–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54extern const SigningProvider& DUMMY_SIGNING_PROVIDER;
55
56class HidingSigningProvider : public SigningProvider
57{
58private:
59 const bool m_hide_secret;
60 const bool m_hide_origin;
61 const SigningProvider* m_provider;
62
63public:
64 HidingSigningProvider(const SigningProvider* provider, bool hide_secret, bool hide_origin) : m_hide_secret(hide_secret), m_hide_origin(hide_origin), m_provider(provider) {}
65 bool GetCScript(const CScriptID& scriptid, CScript& script) const override;
66 bool GetPubKey(const CKeyID& keyid, CPubKey& pubkey) const override;
67 bool GetKey(const CKeyID& keyid, CKey& key) const override;
68 bool GetKeyOrigin(const CKeyID& keyid, KeyOriginInfo& info) const override;
69 bool GetTaprootSpendData(const XOnlyPubKey& output_key, TaprootSpendData& spenddata) const override;
70};
71
72struct FlatSigningProvider final : public SigningProvider
73{

Callers 1

FillPSBTMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected