ProofStatus

public enum ProofStatus : Int

The curernt backend certificate state for a QEDReport

  • The report has not been requested for certification yet

    Declaration

    Swift

    case undefined
  • The report has been submited to blockchain but is not yet confirmed

    Declaration

    Swift

    case pending
  • Report confirmed in blockchain

    Declaration

    Swift

    case confirmed
  • Report sumbinted to blockchain but failed

    Declaration

    Swift

    case failed
  • Creates a ProofStatus instance based on the string representation from QED REST API response

    Note

    When an invalid string is passed as apiStatus the created instance will default to undefined

    Declaration

    Swift

    public init(fromAPIString apiStatus: String)

    Parameters

    apiStatus

    A string representing the status

  • The string value used to represent the status on QEDAPI transactions

    Declaration

    Swift

    public var string: String { get }