EncryptedCredentials

public struct EncryptedCredentials : Codable, Equatable, FunctionResult

Contains encrypted Telegram Passport data credentials

  • The encrypted credentials

    Declaration

    Swift

    public let data: Bytes
  • The decrypted data hash

    Declaration

    Swift

    public let hash: Bytes
  • Secret for data decryption, encrypted with the service’s public key

    Declaration

    Swift

    public let secret: Bytes
  • Contains encrypted Telegram Passport data credentials

    Declaration

    Swift

    public init(data: Bytes, hash: Bytes, secret: Bytes)

    Parameters

    data

    The encrypted credentials

    hash

    The decrypted data hash

    secret

    Secret for data decryption, encrypted with the service’s public key