def verify_issues(asset_transaction)
      previous_txout = nil # fetch only when we have > 0 issue outputs
      asset_transaction.outputs.each do |aout|
        if !aout.verified?
          if aout.value && aout.value > 0
            if aout.issue?
              previous_txout ||= transaction_output_for_input(asset_transaction.inputs[0].transaction_input)
              if !previous_txout
                Diagnostics.current.add_message("Failed to assign AssetID to issue output #{aout.index}: can't find output for input #0")
                return false
              end
              aout.asset_id = AssetID.new(script: previous_txout.script, network: self.network)
              # Output issues some known asset and amount and therefore it is verified.
              aout.verified = true
            else
              # Transfer outputs must be matched with known asset ids on the inputs.
            end
          else
            # Output without a value is uncolored.
            aout.asset_id = nil
            aout.value = nil
            aout.verified = true
          end
        end
      end
      true
    end
def verify_issues(asset_transaction)
      previous_txout = nil # fetch only when we have > 0 issue outputs
      asset_transaction.outputs.each do |aout|
        if !aout.verified?
          if aout.value && aout.value > 0
            if aout.issue?
              previous_txout ||= transaction_output_for_input(asset_transaction.inputs[0].transaction_input)
              if !previous_txout
                Diagnostics.current.add_message("Failed to assign AssetID to issue output #{aout.index}: can't find output for input #0")
                return false
              end
              aout.asset_id = AssetID.new(script: previous_txout.script, network: self.network)
              # Output issues some known asset and amount and therefore it is verified.
              aout.verified = true
            else
              # Transfer outputs must be matched with known asset ids on the inputs.
            end
          else
            # Output without a value is uncolored.
            aout.asset_id = nil
            aout.value = nil
            aout.verified = true
          end
        end
      end
      true
    end
Attempts to verify issues. Fetches parent transactions to determine AssetID.
 Returns `true` if verified all issue outputs.
 Returns `false` if previous tx defining AssetID is not found.