def data
      data = "".b
      txdata = @transaction.data
      data << WireFormat.encode_string(txdata)
      @inputs.each do |ain|
        data << ain.assets_data
      end
      @outputs.each do |aout|
        if !aout.marker?
          data << aout.assets_data
        end
      end
      data
    end
def data
      data = "".b
      txdata = @transaction.data
      data << WireFormat.encode_string(txdata)
      @inputs.each do |ain|
        data << ain.assets_data
      end
      @outputs.each do |aout|
        if !aout.marker?
          data << aout.assets_data
        end
      end
      data
    end
Serialized tx will have:
 - raw tx data
 - array of input colors (verified yes/no, asset id, units)
 - array of output colors (verified yes/no, asset id, units) - do not contain marker output