if(digest == null) { out.writeBoolean(false); return; } out.writeBoolean(true);
        public void writeExternal(ObjectOutput out) throws IOException {            out.writeInt(type);            digest.writeExternal(out);        }