ContractChallengeResponse

public struct ContractChallengeResponse : Decodable, Sendable

Response from the SEP-45 challenge endpoint containing authorization entries to be signed.

This response is returned when requesting a challenge from the authentication server. The authorization entries must be validated, signed by the client, and submitted back to obtain a JWT token.

See also:

  • Base64 XDR-encoded array of SorobanAuthorizationEntry objects. These entries must be validated and signed before submission.

    Declaration

    Swift

    public let authorizationEntries: String
  • Optional network passphrase for client verification. If provided, clients should verify it matches their expected network.

    Declaration

    Swift

    public let networkPassphrase: String?
  • Creates a new instance by decoding from the given decoder. Supports both snake_case (per spec) and camelCase (used by some servers).

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder containing the data