message: Add uint256 conversion functions
diff: //////////////////////////////////////// qtum
  #include <libdevcore/Common.h>
  +#include <libdevcore/CommonData.h>
  #include <libdevcore/FixedHash.h>
  ////////////////////////////////////////
  @@ -179,6 +180,20 @@ inline uint256 h256Touint(const dev::h256& in)
  std::vector<unsigned char> vHashBlock = in.asBytes();
  return uint256(vHashBlock);
  }
  +
  +inline dev::u256 uintTou256(const uint256& in)
  +{
  + std::vector<unsigned char> rawValue;
  + rawValue.assign(in.begin(), in.end());
  + return dev::fromBigEndian<dev::u256, dev::bytes>(rawValue);
  +}
  +
  +inline uint256 u256Touint(const dev::u256& in)
  +{
  + std::vector<unsigned char> rawValue(32, 0);
  + dev::toBigEndian<dev::u256, dev::bytes>(in, rawValue);
  + return uint256(rawValue);
  +}
  //////////////////////////////////////////////////////
  #endif // BITCOIN_UINT256_H
  