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

Function MessageHash

src/util/message.cpp:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72uint256 MessageHash(const std::string& message)
73{
74 CHashWriter hasher(SER_GETHASH, 0);
75 hasher << MESSAGE_MAGIC << message;
76
77 return hasher.GetHash();
78}
79
80std::string SigningResultString(const SigningResult res)
81{

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.85
FUZZ_TARGET_INITFunction · 0.85
MessageVerifyFunction · 0.85
MessageSignFunction · 0.85

Calls 1

GetHashMethod · 0.45

Tested by 2

BOOST_AUTO_TEST_CASEFunction · 0.68
FUZZ_TARGET_INITFunction · 0.68