@@ -0,0 +1,691 @@
+package com.itranswarp.bitcoin.serializer;%0A%0Aimport java.io.IOException;%0A%0Aimport com.fasterxml.jackson.core.JsonGenerator;%0Aimport com.fasterxml.jackson.core.JsonProcessingException;%0Aimport com.fasterxml.jackson.databind.JsonSerializer;%0Aimport com.fasterxml.jackson.databind.SerializerProvider;%0Aimport com.itranswarp.bitcoin.util.HashUtils;%0A%0A/**%0A * Serialize byte%5B%5D to hex string.%0A * %0A * @author Michael Liao%0A */%0Apublic class HexSerializer extends JsonSerializer%3Cbyte%5B%5D%3E %7B%0A%0A%09@Override%0A%09public void serialize(byte%5B%5D value, JsonGenerator gen, SerializerProvider serializers)%0A%09%09%09throws IOException, JsonProcessingException %7B%0A%09%09String s = HashUtils.toHexString(value);%0A%09%09gen.writeString(s);%0A%09%7D%0A%0A%7D%0A

add hex serializer