| 29 | explicit DestinationEncoder(const CChainParams& params) : m_params(params) {} |
| 30 | |
| 31 | std::string operator()(const PKHash& id) const |
| 32 | { |
| 33 | std::vector<unsigned char> data = m_params.Base58Prefix(CChainParams::PUBKEY_ADDRESS); |
| 34 | data.insert(data.end(), id.begin(), id.end()); |
| 35 | return EncodeBase58Check(data); |
| 36 | } |
| 37 | |
| 38 | std::string operator()(const ScriptHash& id) const |
| 39 | { |
nothing calls this directly
no test coverage detected