MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ToString

Method ToString

src/test/fuzz/miniscript.cpp:128–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126 }
127
128 std::optional<std::string> ToString(const Key& key, bool& has_priv_key) const
129 {
130 has_priv_key = false;
131 auto it = TEST_DATA.dummy_key_idx_map.find(key);
132 if (it == TEST_DATA.dummy_key_idx_map.end()) {
133 return HexStr(key);
134 }
135 has_priv_key = true;
136 uint8_t idx = it->second;
137 return HexStr(std::span{&idx, 1});
138 }
139
140 std::vector<unsigned char> ToPKBytes(const Key& key) const {
141 if (!miniscript::IsTapscript(script_ctx)) {

Callers 15

integer.cppFile · 0.45
FUZZ_TARGETFunction · 0.45
pcp.cppFile · 0.45
banman.cppFile · 0.45
FUZZ_TARGETFunction · 0.45
transaction.cppFile · 0.45
FUZZ_TARGETFunction · 0.45
TestDescriptorFunction · 0.45
FUZZ_TARGETFunction · 0.45
FUZZ_TARGETFunction · 0.45
block.cppFile · 0.45
FUZZ_TARGETFunction · 0.45

Calls 3

findMethod · 0.80
HexStrFunction · 0.50
endMethod · 0.45

Tested by

no test coverage detected