{% extends 'base.html' %}
{#
Eos - Verifiable elections
Copyright © 2017-18 RunasSudo (Yingtong Li)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see
{{ election.kind|title }} fingerprint: {{ SHA256().update_obj(election).hash_as_b64() }}
Cast at | Comment | {% if session.user and session.user.is_admin() %}Client | Ballot fingerprint (Content/Actions ) | {% else %}Ballot fingerprint (Content ) | {% endif %}
---|---|---|---|---|
{{ vote.cast_at|pretty_date }} | {% if vote.comment %}{{ vote.comment }}{% endif %} | {% if session.user and session.user.is_admin() %}
{% if vote.cast_ip %}{{ vote.cast_ip }}{% if vote.cast_fingerprint %} {% endif %}{% endif %} {% if vote.cast_fingerprint %}{{ eos.core.hashing.SHA256().update_text(eos.core.objects.EosObject.to_json(vote.cast_fingerprint)).hash_as_b64(True) }}{% endif %} |
{% endif %}
{{ eos.core.hashing.SHA256().update_obj(vote).hash_as_b64(True) }}
{% if session.user and session.user.is_admin() %}{{ eos.core.objects.EosObject.to_json(eos.core.objects.EosObject.serialise_and_wrap(vote)) }}{% else %}{{ eos.core.objects.EosObject.to_json(eos.core.objects.EosObject.serialise_and_wrap(vote, options=eos.core.objects.SerialiseOptions(should_protect=True))) }}{% endif %}
|