RejectionReason

public enum RejectionReason : Equatable, Hashable
extension RejectionReason: Sendable

A reason why this message could not be decrypted.

  • This message has already been processed, or replays a message which has.

    Declaration

    Swift

    case duplicateMessage
  • This commit is for an epoch which this conversation has already moved past.

    Declaration

    Swift

    case staleCommit
  • This proposal is for an epoch which this conversation has already moved past.

    Declaration

    Swift

    case staleProposal
  • This message is from an epoch whose secrets are no longer available.

    This includes transient messages from any epoch older than the current one.

    Declaration

    Swift

    case messageEpochTooOld(
        /**
         * Epoch of the message
         */messageEpoch: UInt64, 
        /**
         * Epoch of the group
         */groupEpoch: UInt64
    )
  • This message is from an epoch too far in the future to buffer.

    Declaration

    Swift

    case unbufferedFarFutureMessage(
        /**
         * Epoch of the message
         */messageEpoch: UInt64, 
        /**
         * Epoch of the group
         */groupEpoch: UInt64
    )
  • This message’s ciphertext failed authentication, so it could not be decrypted.

    The ciphertext may have been corrupted or tampered with, or encrypted with keys we don’t have. Authenticated encryption deliberately doesn’t distinguish between these.

    Declaration

    Swift

    case invalidAuthentication
  • This message could not be deserialized.

    Declaration

    Swift

    case unparseable(
        /**
         * What specifically could not be parsed.
         */reason: String
    )
  • This message is valid MLS, but not a public or private message, so it cannot be decrypted.

    For example, a welcome or a key package.

    Declaration

    Swift

    case inappropriateMessageBodyType
  • This message uses a protocol version we don’t support.

    Declaration

    Swift

    case unsupportedProtocolVersion
  • This message uses a wire format which the conversation’s wire format policy doesn’t allow.

    Declaration

    Swift

    case incompatibleWireFormat
  • This message’s signature doesn’t match its sender’s signature key.

    Declaration

    Swift

    case invalidSignature
  • The sender’s X509 certificate chain could not be parsed.

    Declaration

    Swift

    case malformedCredential(
        /**
         * What went wrong when attempting to parse the certificate chain.
         */error: String
    )
  • The sender’s X509 certificate chain is not correctly signed.

    Declaration

    Swift

    case untrustedCredential(
        /**
         * What went wrong when validating the signatures of the certificate chain.
         */error: String
    )
  • This message belongs to a different conversation.

    Declaration

    Swift

    case wrongGroupId
  • This message’s sender is not a member of the conversation in the message’s epoch.

    Declaration

    Swift

    case unknownMember
  • This targeted message is addressed to a different member of the conversation.

    Declaration

    Swift

    case wrongRecipient
  • This public message’s membership tag is missing or invalid.

    Declaration

    Swift

    case invalidMembershipTag
  • This message comes from an external sender not authorized in this conversation.

    Declaration

    Swift

    case unauthorizedExternalSender
  • This external proposal is of a type which external senders may not send.

    Declaration

    Swift

    case unsupportedProposalType
  • This commit’s confirmation tag doesn’t match the one we computed.

    Either the commit is invalid, or our view of the conversation has diverged from the sender’s.

    Declaration

    Swift

    case confirmationTagMismatch