ELEMENTS
| 190 | |
| 191 | // ELEMENTS |
| 192 | class SetBlindingPubKeyVisitor |
| 193 | { |
| 194 | public: |
| 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 |
no outgoing calls
no test coverage detected