-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathreport.tex
162 lines (129 loc) · 4.03 KB
/
report.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
\documentclass[11pt,a4paper]{report}
\usepackage{hyperref}
\usepackage[margin=2.5cm]{geometry}
\usepackage{amsmath, amsthm}
\usepackage{txfonts}
\usepackage{todonotes}
\usepackage{enumitem}
\usepackage{listings}
\usepackage[nameinlink]{cleveref}
\usepackage{microtype}
\usepackage[group-separator={,}]{siunitx}
\hypersetup{
pdftitle={The Cardano Consensus and Storage Layer},
pdfborder={0 0 0},
breaklinks=true
}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{intersections}
% https://tex.stackexchange.com/questions/229940/can-i-have-a-listing-with-fixed-column-code-and-full-flexible-comments
\makeatletter
\let\commentfullflexible\lst@column@fullflexible
\makeatother
% Use continuous footnote numbering so we can refer to them
% https://tex.stackexchange.com/questions/10448/continuous-footnote-numbering
\counterwithout{footnote}{chapter}
\lstset{
language=haskell
, basicstyle=\small\ttfamily
, keywordstyle=\bfseries
, commentstyle=\normalsize\rmfamily\itshape\commentfullflexible
, columns=fixed
, morekeywords={
family
, Type
}
}
\theoremstyle{definition}
\newtheorem{property}{Property}
\newtheorem{definition}{Definition}
\newtheorem{lemma}{Lemma}
\newtheorem{assumption}{Assumption}
\newtheorem{corollary}{Corollary}
\newtheorem{proposal}{Proposal}
\newtheorem{failedattempt}{Failed attempt}
\numberwithin{property}{chapter}
\numberwithin{definition}{chapter}
\numberwithin{lemma}{chapter}
\numberwithin{assumption}{chapter}
\numberwithin{corollary}{chapter}
\numberwithin{proposal}{chapter}
\numberwithin{failedattempt}{chapter}
\newenvironment{bug}
{\begin{quote} \textbf{Known bug}.}
{\end{quote}}
\title{The Cardano Consensus and Storage Layer \\
{\large \sc An IOHK technical report}
}
\author{Edsko de Vries \\ \href{mailto:[email protected]}
{\small \texttt [email protected]}
\and Thomas Winant \\ \href{mailto:[email protected]}
{\small \texttt [email protected]}
\and Duncan Coutts \\ \href{mailto:[email protected]}
{\small \texttt [email protected]}
\\ \href{mailto:[email protected]}
{\small \texttt [email protected]}
}
\newcommand{\debugsep}[1]{
\vspace{2em}
\hrule
\vspace{0.5em}
\textbf{#1}
\vspace{0.5em}
\hrule
\vspace{2em}
}
% TODO
%
% * Incorporate
%
% - Previous blog posts
% - Specifications currently stored as markdown files in the repo
% - Any discussions in long comments in the code
%
% - choice of k: liveness versus safety
% - make sure we talk about the fact that the ledger can be linear
\newcommand{\duncan}{\todo{Duncan suitable section.}}
\begin{document}
\maketitle
\tableofcontents
\input{chapters/intro/intro.tex}
\input{chapters/intro/overview.tex}
\input{chapters/intro/nonfunctional.tex}
\part{Consensus Layer}
\input{chapters/consensus/protocol.tex}
\input{chapters/consensus/ledger.tex}
\input{chapters/consensus/serialisation.tex}
\part{Storage Layer}
\input{chapters/storage/overview.tex}
\input{chapters/storage/immutabledb.tex}
\input{chapters/storage/volatiledb.tex}
\input{chapters/storage/ledgerdb.tex}
\input{chapters/storage/chainselection.tex}
\input{chapters/storage/chaindb.tex}
\input{chapters/storage/mempool.tex}
\part{Mini protocols}
\input{chapters/miniprotocols/chainsyncclient}
\input{chapters/miniprotocols/servers}
\part{Hard Fork Combinator}
\input{chapters/hfc/overview.tex}
\input{chapters/hfc/time.tex}
\input{chapters/hfc/misc.tex}
\part{Testing}
\input{chapters/testing/consensus.tex}
\input{chapters/testing/storage.tex}
\part{Future Work}
\input{chapters/future/genesis.tex}
\input{chapters/future/lowdensity.tex}
\input{chapters/future/ebbs.tex}
\input{chapters/future/misc.tex}
\part{Conclusions}
\input{chapters/conclusions/technical.tex}
\input{chapters/conclusions/conclusions}
\part{Appendices}
\appendix
\input{chapters/appendix/byron.tex}
\input{chapters/appendix/shelley.tex}
\bibliographystyle{acm}
\bibliography{references}
\end{document}