MCPcopy Create free account
hub / github.com/LUX-Core/lux / stringMapHash256

Function stringMapHash256

src/cpp-ethereum/test/libdevcrypto/trie.cpp:284–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284h256 stringMapHash256(StringMap const& _s)
285{
286 BytesMap bytesMap;
287 for (auto const& _v: _s)
288 bytesMap.insert(std::make_pair(bytes(_v.first.begin(), _v.first.end()), bytes(_v.second.begin(), _v.second.end())));
289 return hash256(bytesMap);
290}
291
292bytes stringMapRlp256(StringMap const& _s)
293{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 4

hash256Class · 0.50
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected