Module qr

Source
Expand description

ยงQR code module.

Modulesยง

dclogin_scheme ๐Ÿ”’

Structsยง

CreateAccountErrorResponse ๐Ÿ”’
CreateAccountSuccessResponse ๐Ÿ”’

Enumsยง

LoginOptions
Options for dclogin: scheme.
Qr
Scanned QR code.

Constantsยง

DCACCOUNT_SCHEME ๐Ÿ”’
DCBACKUP_SCHEME_PREFIX ๐Ÿ”’
Backup transfer based on iroh-net.
DCBACKUP_VERSION ๐Ÿ”’
Version written to Backups and Backup-QR-Codes. Imports will fail when they have a larger version.
DCLOGIN_SCHEME ๐Ÿ”’
HTTPS_SCHEME ๐Ÿ”’
IDELTACHAT_NOSLASH_SCHEME ๐Ÿ”’
IDELTACHAT_SCHEME ๐Ÿ”’
MAILTO_SCHEME ๐Ÿ”’
MATMSG_SCHEME ๐Ÿ”’
OPENPGP4FPR_SCHEME ๐Ÿ”’
SHADOWSOCKS_SCHEME ๐Ÿ”’
SMTP_SCHEME ๐Ÿ”’
TG_SOCKS_SCHEME ๐Ÿ”’
VCARD_SCHEME ๐Ÿ”’

Staticsยง

VCARD_EMAIL_RE ๐Ÿ”’
VCARD_NAME_RE ๐Ÿ”’

Functionsยง

check_qr
Checks a scanned QR code.
decode_account ๐Ÿ”’
scheme: DCACCOUNT:example.org or DCACCOUNT:https://example.org/new or DCACCOUNT:https://example.org/new_email?t=1w_7wDjgjelxeX884x96v3
decode_backup2 ๐Ÿ”’
Decodes a DCBACKUP QR code.
decode_ideltachat ๐Ÿ”’
scheme: https://i.delta.chat[/]#FINGERPRINT&a=ADDR[&OPTIONAL_PARAMS]
decode_mailto ๐Ÿ”’
Extract address for the mailto scheme.
decode_matmsg ๐Ÿ”’
Extract address for the matmsg scheme.
decode_openpgp ๐Ÿ”’
scheme: OPENPGP4FPR:FINGERPRINT#a=ADDR&n=NAME&i=INVITENUMBER&s=AUTH or: OPENPGP4FPR:FINGERPRINT#a=ADDR&g=GROUPNAME&x=GROUPID&i=INVITENUMBER&s=AUTH or: OPENPGP4FPR:FINGERPRINT#a=ADDR
decode_shadowsocks_proxy ๐Ÿ”’
Decodes ss:// URLs for Shadowsocks proxies.
decode_smtp ๐Ÿ”’
Extract address for the smtp scheme.
decode_tg_socks_proxy ๐Ÿ”’
scheme: https://t.me/socks?server=foo&port=123 or https://t.me/socks?server=1.2.3.4&port=123
decode_vcard ๐Ÿ”’
Extract address for the vcard scheme.
fix_add_second_device_qr ๐Ÿ”’
format_backup
Formats the text of the Qr::Backup2 variant.
login_param_from_account_qr ๐Ÿ”’
Takes a QR with DCACCOUNT: scheme, parses its parameters, downloads additional information from the contained URL and returns the login parameters.
normalize_address ๐Ÿ”’
URL decodes a given address, does basic email validation on the result.
set_config_from_qr
Sets configuration values from a QR code.
starts_with_ignore_case ๐Ÿ”’