35 template <
class T,
class U>
inline h256 trieRootOver(
unsigned _itemCount,
T const& _getKey, U
const& _getValue)
38 for (
unsigned i = 0; i < _itemCount; ++i)
39 m[_getKey(i)] = _getValue(i);
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::map< bytes, bytes > BytesMap
h256 hash256(BytesMap const &_s)
std::vector< byte > bytes
bytes rlp256(BytesMap const &_s)
h256 trieRootOver(unsigned _itemCount, T const &_getKey, U const &_getValue)
h256 orderedTrieRoot(std::vector< bytes > const &_data)