code: function bufferToQuantityHex(buffer) {
      buffer = ethUtil.toBuffer(buffer);
      var hex = buffer.toString('hex');
      var trimmed = ethUtil.unpad(hex);
      return ethUtil.addHexPrefix(trimmed);
  }
docs: /*
  As per https://github.com/ethereum/wiki/wiki/JSON-RPC#hex-value-encoding
  Quantities should be represented by the most compact hex representation possible
  This means that no leading zeroes are allowed. There helpers make it easy
  to convert to and from integers and their compact hex representation