| 1000 | } |
| 1001 | |
| 1002 | class BlindingPubkeyAdderVisitor |
| 1003 | { |
| 1004 | public: |
| 1005 | CPubKey blind_key; |
| 1006 | explicit BlindingPubkeyAdderVisitor(const CPubKey& blind_key_in) : blind_key(blind_key_in) {} |
| 1007 | |
| 1008 | void operator()(const CNoDestination& dest) const {} |
| 1009 | |
| 1010 | void operator()(PKHash& keyID) const |
| 1011 | { |
| 1012 | keyID.blinding_pubkey = blind_key; |
| 1013 | } |
| 1014 | |
| 1015 | void operator()(ScriptHash& scriptID) const |
| 1016 | { |
| 1017 | scriptID.blinding_pubkey = blind_key; |
| 1018 | } |
| 1019 | |
| 1020 | void operator()(WitnessV0KeyHash& id) const |
| 1021 | { |
| 1022 | id.blinding_pubkey = blind_key; |
| 1023 | } |
| 1024 | |
| 1025 | void operator()(WitnessV0ScriptHash& id) const |
| 1026 | { |
| 1027 | id.blinding_pubkey = blind_key; |
| 1028 | } |
| 1029 | |
| 1030 | void operator()(WitnessV1Taproot& tap) const |
| 1031 | { |
| 1032 | tap.blinding_pubkey = blind_key; |
| 1033 | } |
| 1034 | |
| 1035 | void operator()(WitnessUnknown& id) const |
| 1036 | { |
| 1037 | id.blinding_pubkey = blind_key; |
| 1038 | } |
| 1039 | |
| 1040 | void operator()(const NullData& id) const {} |
| 1041 | }; |
| 1042 | |
| 1043 | |
| 1044 | static RPCHelpMan createblindedaddress() |
no outgoing calls
no test coverage detected