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

Function hash256aux

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

Source from the content-addressed store, hash-verified

138}
139
140void hash256aux(HexMap const& _s, HexMap::const_iterator _begin, HexMap::const_iterator _end, unsigned _preLen, RLPStream& _rlp)
141{
142 RLPStream rlp;
143 hash256rlp(_s, _begin, _end, _preLen, rlp);
144 if (rlp.out().size() < 32)
145 {
146 // RECURSIVE RLP
147#if ENABLE_DEBUG_PRINT
148 cerr << "[INLINE: " << dec << rlp.out().size() << " < 32]" << endl;
149#endif
150 _rlp.APPEND_CHILD(rlp.out());
151 }
152 else
153 {
154#if ENABLE_DEBUG_PRINT
155 cerr << "[HASH: " << dec << rlp.out().size() << " >= 32]" << endl;
156#endif
157 _rlp << sha3(rlp.out());
158 }
159}
160
161bytes rlp256(BytesMap const& _s)
162{

Callers 1

hash256rlpFunction · 0.85

Calls 3

hash256rlpFunction · 0.85
sha3Function · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected