MCPcopy Create free account
hub / github.com/ElementsProject/elements / TaggedHash

Function TaggedHash

src/hash.cpp:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89CHashWriter TaggedHash(const std::string& tag)
90{
91 CHashWriter writer(SER_GETHASH, 0);
92 uint256 taghash;
93 CSHA256().Write((const unsigned char*)tag.data(), tag.size()).Finalize(taghash.begin());
94 writer << taghash << taghash;
95 return writer;
96}

Callers 2

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