MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / operator()

Method operator()

src/key_io.cpp:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 10

EncodeBase58CheckFunction · 0.85
EncodeFunction · 0.85
CeilDivFunction · 0.85
GetWitnessVersionMethod · 0.80
insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected