{% extends "base.html" %} {% block title %}{{ t('letter.title') }} — {{ connection.connection_id }} — painfree{% endblock %} {% block body %}

{{ t('letter.back') }} {{ t('letter.hint') }}

{# The letter is a document the bank reads. Its headings follow the console's language, because the person printing it is the reader who has to check it; the exponent, the modulus and the hashes are values and are printed exactly as the engine formats them, in every locale. #}

{{ t('letter.heading') }}

HostID{{ letter.host_id }}
PartnerID{{ letter.partner_id }}
UserID{{ letter.user_id }}
{{ t('letter.date') }}{{ connection.updated_at | moment }}
{{ t('letter.hash_convention') }}{{ letter.digest.value }}
{% for key in letter.keys %}

{{ key.version.value }} — {{ t('letter.key_of', role=key.version.role.value, bits=key.modulus_bits) }}

{{ t('letter.exponent') }}

{{ key.exponent }}

{{ t('letter.modulus') }}

{{ key.modulus }}

{{ t('letter.hash') }}

{{ key.fingerprint_formatted }}
{% endfor %}

{{ t('letter.declaration') }}

{{ t('letter.signature_line') }}
{% endblock %}