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

Class SetBlindingPubKeyVisitor

src/script/standard.h:192–207  ·  view source on GitHub ↗

ELEMENTS

Source from the content-addressed store, hash-verified

190
191// ELEMENTS
192class SetBlindingPubKeyVisitor
193{
194public:
195 const CPubKey& blinding_pubkey;
196
197 explicit SetBlindingPubKeyVisitor(const CPubKey& blinding_pubkey_) : blinding_pubkey(blinding_pubkey_) {}
198
199 void operator()(CNoDestination &dest) const { }
200 void operator()(PKHash &dest) const { dest.blinding_pubkey = blinding_pubkey; }
201 void operator()(ScriptHash &dest) const { dest.blinding_pubkey = blinding_pubkey; }
202 void operator()(WitnessV0KeyHash &dest) const { dest.blinding_pubkey = blinding_pubkey; }
203 void operator()(WitnessV0ScriptHash &dest) const { dest.blinding_pubkey = blinding_pubkey; }
204 void operator()(WitnessV1Taproot &dest) const { dest.blinding_pubkey = blinding_pubkey; }
205 void operator()(WitnessUnknown &dest) const { dest.blinding_pubkey = blinding_pubkey; }
206 void operator()(NullData &dest) const { }
207};
208/**
209 * A txout script template with a specific destination. It is either:
210 * * CNoDestination: no destination set

Callers 2

GetNewDestinationMethod · 0.85
SetBlindingPubKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected