class Tourmaline::EncryptedCredentials

Overview

Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(data : String, hash : String, secret : String) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def data : String #

Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication


[View source]
def data=(data : String) #

Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication


[View source]
def hash : String #

Base64-encoded data hash for data authentication


[View source]
def hash=(hash : String) #

Base64-encoded data hash for data authentication


[View source]
def secret : String #

Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption


[View source]
def secret=(secret : String) #

Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption


[View source]