From 5eec45539b87f77e26addcad8d9f1b05883e3ee4 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 2 Jan 2021 20:34:58 +0100 Subject: Add graphic how a blockchain could look like Signed-off-by: Matthias Beyer --- doc/paper/gen/blockchain.bob | 12 ++++++++++++ doc/paper/main.tex | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 doc/paper/gen/blockchain.bob diff --git a/doc/paper/gen/blockchain.bob b/doc/paper/gen/blockchain.bob new file mode 100644 index 0000000..24e6aff --- /dev/null +++ b/doc/paper/gen/blockchain.bob @@ -0,0 +1,12 @@ ++-----+ +-----+ +-----+ +-----+ +| | | | | | | | +| A +<-----+ B +<-----+ D +<-----+ E | +| | | | | | | | ++--+--+ +-----+ +--+--+ +-----+ + ^ | + | +-----+ | + | | | | + +---------------+ C +<--+ + | | + +-----+ + diff --git a/doc/paper/main.tex b/doc/paper/main.tex index 54b6043..bc89d56 100644 --- a/doc/paper/main.tex +++ b/doc/paper/main.tex @@ -126,6 +126,10 @@ Thus, it should only hold the following elements: A block may hold more than one pointer to a parent block to make merges possible on the block-level. +\ref{pic:blockchain} describes a minimal chain of blocks. +Each block, save $A$, points to its predecessor. +$D$ points both to $B$ and $C$, because it merges these blocks, that were both +created with $A$ as their predecessor. \begin{lstlisting}[language=json,caption={Example of a Block},label=jsonblock] { @@ -139,6 +143,13 @@ As shown in \ref{jsonblock}, minimal data is held in the "Block" object. Because of the small size, replication of block objects is cheap and every modern end-user device can easily hold millions of blocks. +\begin{figure}[ht] + \centering + \includegraphics[width=0.45\textwidth]{gen/blockchain.png} + \caption{A chain of blocks} + \label{pic:blockchain} +\end{figure} + If $S_{parents}(b)$ is the size of the list of parents of a block $b$, and $S_{base}$ is the size of a block without any parents, -- cgit v1.2.3