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

Function rlp256

src/cpp-ethereum/libdevcore/TrieHash.cpp:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161bytes rlp256(BytesMap const& _s)
162{
163 // build patricia tree.
164 if (_s.empty())
165 return rlp("");
166 HexMap hexMap;
167 for (auto i = _s.rbegin(); i != _s.rend(); ++i)
168 hexMap[asNibbles(bytesConstRef(&i->first))] = i->second;
169 RLPStream s;
170 hash256rlp(hexMap, hexMap.cbegin(), hexMap.cend(), 0, s);
171 return s.out();
172}
173
174h256 hash256(BytesMap const& _s)
175{

Callers 2

stringMapRlp256Function · 0.85
hash256Function · 0.85

Calls 7

rlpFunction · 0.85
hash256rlpFunction · 0.85
rbeginMethod · 0.80
rendMethod · 0.80
cbeginMethod · 0.80
cendMethod · 0.80
emptyMethod · 0.45

Tested by 1

stringMapRlp256Function · 0.68