aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-09-02 08:01:55 +0200
committerChristian Grothoff <christian@grothoff.org>2019-09-02 08:01:55 +0200
commit67aeb85a13db9acf9505098d82433cf7e7cfa23a (patch)
tree907835f2ea407ed8a46a538d3c7b8216dbd7a537 /contrib
parentf049016b56f730c69d4be7a7cb40edc44267d170 (diff)
misc. auditor bugfixes
Diffstat (limited to 'contrib')
-rw-r--r--contrib/auditor-report.tex.j272
1 files changed, 57 insertions, 15 deletions
diff --git a/contrib/auditor-report.tex.j2 b/contrib/auditor-report.tex.j2
index ea47920e2..b03bf8235 100644
--- a/contrib/auditor-report.tex.j2
+++ b/contrib/auditor-report.tex.j2
@@ -205,33 +205,75 @@ exposure} is the amount of coins in circulation for a particular
denomination and the maximum loss for the exchange from this type of
compromise.
-% FIXME: expand to include actual losses (materizlied risk)!
+{% if (data.emergencies|length() != 0)
+ or (data.emergencies_by_count|length() != 0) %}
+The total risk from emergencies is
+{\bf {{ data.emergencies_risk_total }} }
+{% endif %}
+
+
+\subsubsection{Emergencies by counting coins}
+
+{% if data.emergencies_by_count|length() == 0 %}
+ {\bf No emergencies detected by counting coins.}
+{% else %}
+ \begin{longtable}{r|c|r|r}
+ \multicolumn{4}{c}{ {\bf Public key hash} } \\
+ {\bf Denomination} & {\bf Lifetime} & {\bf \# Issued} & {\bf \# Deposited} \\ \hline \hline
+\endfirsthead
+ \multicolumn{4}{|c|}{ {\bf Public key hash} } \\
+ {\bf Denomination} & {\bf Lifetime} & {\bf \# Issued} & {\bf \# Deposited} \\ \hline \hline
+\endhead
+ \hline \hline
+ \multicolumn{4}{|c|}{ {\bf Public key hash} } \\
+ {\bf Denomination} & {\bf Lifetime} & {\bf \# Issued} & {\bf \# Deposited} \\ \hline \hline
+\endfoot
+ \caption{Emergencies by counting coins.}
+ \label{table:emergencies_coin_counting}
+\endlastfoot
+{% for item in data.emergencies_by_count %}
+ \multicolumn{4}{l}{ {\tt \truncate{\textwidth}{ {{ item.denompub_hash }} } } } \\
+\nopagebreak
+ {{ item.value }} &
+ {\tiny \begin{tabular}{c}
+ {{ item.start }} \\ \hline
+ {{ item.deposit_end }}
+ \end{tabular} } &
+ {{ item.num_issued }} &
+ {{ item.num_known }} \\ \hline
+{% endfor %}
+ \end{longtable}
+{% endif %}
+
+\subsubsection{Emergencies by value deposited}
{% if data.emergencies|length() == 0 %}
- {\bf No emergencies detected.}
+ {\bf No emergencies by value detected.}
{% else %}
- \begin{longtable}{r|c|r}
- \multicolumn{3}{c}{ {\bf Public key hash} } \\
- {\bf Denomination} & {\bf Lifetime} & {\bf Risk exposure} \\ \hline \hline
+ \begin{longtable}{r|c|r|r}
+ \multicolumn{4}{c}{ {\bf Public key hash} } \\
+ {\bf Denomination} & {\bf Lifetime} & {\bf Risk exposure} & {\bf Loss} \\ \hline \hline
\endfirsthead
- \multicolumn{3}{|c|}{ {\bf Public key hash} } \\
- {\bf Denomination} & {\bf Lifetime} & {\bf Risk exposure} \\ \hline \hline
+ \multicolumn{4}{|c|}{ {\bf Public key hash} } \\
+ {\bf Denomination} & {\bf Lifetime} & {\bf Risk exposure} & {\bf Loss} \\ \hline \hline
\endhead
\hline \hline
- \multicolumn{3}{|c|}{ {\bf Public key hash} } \\
- {\bf Denomination} & {\bf Lifetime} & {\bf Risk exposure} \\
+ \multicolumn{4}{|c|}{ {\bf Public key hash} } \\
+ {\bf Denomination} & {\bf Lifetime} & {\bf Risk exposure} & {\bf Loss} \\
\endfoot
- \hline
- \multicolumn{2}{c|}{ {\bf Total risk from emergencies}} & {{ data.emergencies_risk_total }} \\
- \caption{Emergencies.}
+ \caption{Emergencies by value deposited.}
\label{table:emergencies}
\endlastfoot
{% for item in data.emergencies %}
- \multicolumn{3}{l}{ {\tt \truncate{\textwidth}{ {{ item.denompub_hash }} } } } \\
+ \multicolumn{4}{l}{ {\tt \truncate{\textwidth}{ {{ item.denompub_hash }} } } } \\
\nopagebreak
{{ item.value }} &
- {\tiny {{ item.start }} - {{ item.deposit_end }} } &
- {{ item.denom_risk }} \\ \hline
+ {\tiny \begin{tabular}{c}
+ {{ item.start }} \\ \hline
+ {{ item.deposit_end }}
+ \end{tabular} } &
+ {{ item.denom_risk }} &
+ {{ item.denom_loss }} \\ \hline
{% endfor %}
\end{longtable}
{% endif %}