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

Function TaggedHash

src/hash.cpp:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85HashWriter TaggedHash(const std::string& tag)
86{
87 HashWriter writer{};
88 uint256 taghash;
89 CSHA256().Write((const unsigned char*)tag.data(), tag.size()).Finalize(taghash.begin());
90 writer << taghash << taghash;
91 return writer;
92}

Callers 3

pubkey.cppFile · 0.70
interpreter.cppFile · 0.50

Calls 6

CSHA256Class · 0.85
FinalizeMethod · 0.45
WriteMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected