diff --git a/assets/code/orbit-db-identity.js b/assets/code/orbit-db-identity.js new file mode 100644 index 0000000..8306a06 --- /dev/null +++ b/assets/code/orbit-db-identity.js @@ -0,0 +1,12 @@ +{ + _id: '', + // Auto-generated by OrbitDB + _publicKey: '', + signatures: { + //Allows the owner of id to prove they own the private key associated with publicKey + id: '', + //This links the two ids + publicKey: '' + }, + type: 'orbitdb' +} diff --git a/assets/figures/merkle-dag.PNG b/assets/figures/merkle-dag.png similarity index 100% rename from assets/figures/merkle-dag.PNG rename to assets/figures/merkle-dag.png diff --git a/assets/figures/orbitdb-identity.png b/assets/figures/orbitdb-identity.png deleted file mode 100644 index ef6eeb0..0000000 Binary files a/assets/figures/orbitdb-identity.png and /dev/null differ diff --git a/chapters/0.preamble/0.0.preamble.tex b/chapters/0.preamble/0.0.preamble.tex index e1f915d..fcfa229 100644 --- a/chapters/0.preamble/0.0.preamble.tex +++ b/chapters/0.preamble/0.0.preamble.tex @@ -3,7 +3,6 @@ \input{chapters/0.preamble/0.2.abstract} \newpage -% Acknowledgements \input{chapters/0.preamble/0.3.acknowledgements} \newpage diff --git a/chapters/0.preamble/0.1.summary.tex b/chapters/0.preamble/0.1.summary.tex index ed9ae44..2593535 100644 --- a/chapters/0.preamble/0.1.summary.tex +++ b/chapters/0.preamble/0.1.summary.tex @@ -1 +1,3 @@ -Decentralized και τα σχετικά. +\chapter*{Σύνοψη} +\addcontentsline{toc}{chapter}{Σύνοψη} +Decentralized και τα σχετικά. \ No newline at end of file diff --git a/chapters/0.preamble/0.2.abstract.tex b/chapters/0.preamble/0.2.abstract.tex index 36104d4..de70d50 100644 --- a/chapters/0.preamble/0.2.abstract.tex +++ b/chapters/0.preamble/0.2.abstract.tex @@ -1 +1,3 @@ -Don't forget the keywords. +\chapter*{Abstract} +\addcontentsline{toc}{chapter}{Abstract} +Don't forget the keywords. \ No newline at end of file diff --git a/chapters/0.preamble/0.3.acknowledgements.tex b/chapters/0.preamble/0.3.acknowledgements.tex index b962d93..1abcf27 100644 --- a/chapters/0.preamble/0.3.acknowledgements.tex +++ b/chapters/0.preamble/0.3.acknowledgements.tex @@ -1 +1,3 @@ +\chapter*{Ευχαριστίες} +\addcontentsline{toc}{chapter}{Ευχαριστίες} Ευχαριστούμε η Αθήνα. Ευχαριστούμε η Ελλάδα. \ No newline at end of file diff --git a/chapters/2.theoretical-background/2.2.asymmetric-cryptography.tex b/chapters/2.theoretical-background/2.2.asymmetric-cryptography.tex index 85f61c2..8dbd234 100644 --- a/chapters/2.theoretical-background/2.2.asymmetric-cryptography.tex +++ b/chapters/2.theoretical-background/2.2.asymmetric-cryptography.tex @@ -11,7 +11,7 @@ \begin{figure}[H] \centering - \includegraphics[width=15cm]{asymmetric-key-generation.png} + \includegraphics[width=15cm]{assets/figures/asymmetric-key-generation.png} \caption{Παραγωγή ασύμμετρου ζεύγους κλειδιών} \end{figure} @@ -30,7 +30,7 @@ \begin{figure}[H] \centering - \includegraphics[width=15cm]{asymmetric-end-to-end-communication.png} + \includegraphics[width=15cm]{assets/figures/asymmetric-end-to-end-communication.png} \caption{Κρυπτογράφηση απ' άκρη σ' άκρη} \end{figure} diff --git a/chapters/2.theoretical-background/2.6.ethereum.tex b/chapters/2.theoretical-background/2.6.ethereum.tex index b046e70..68bbe99 100644 --- a/chapters/2.theoretical-background/2.6.ethereum.tex +++ b/chapters/2.theoretical-background/2.6.ethereum.tex @@ -2,7 +2,7 @@ \begin{figure}[H] \centering - \includegraphics[width=2cm]{ethereum-logo.png} + \includegraphics[width=2cm]{assets/figures/ethereum-logo.png} \caption{Ethereum logo} \end{figure} diff --git a/chapters/2.theoretical-background/2.7.ipfs.tex b/chapters/2.theoretical-background/2.7.ipfs.tex index 630e3e0..0e79694 100644 --- a/chapters/2.theoretical-background/2.7.ipfs.tex +++ b/chapters/2.theoretical-background/2.7.ipfs.tex @@ -2,7 +2,7 @@ \begin{figure}[H] \centering - \includegraphics[width=2cm]{ipfs-logo.png} + \includegraphics[width=2cm]{assets/figures/ipfs-logo.png} \caption{IPFS logo} \end{figure} @@ -16,7 +16,7 @@ \item \textbf{Σύνδεση περιεχομένου μέσω κατευθυνόμενων άκυκλων γράφων (Directed Acyclic Graphs ή DAGs)}. Το IPFS αξιοποιεί DAGs (και συγκεκριμένα Merkle DAGs), μίας δομής δεδομένων της οποίας κάθε κόμβος έχει ως μοναδικό αναγνωριστικό το hash του περιεχομένου του (το CID). \begin{figure}[H] \centering - \includegraphics[width=15cm]{merkle-dag.png} + \includegraphics[width=15cm]{assets/figures/merkle-dag.png} \caption{Merkle DAG\cite{2.7-merkle-dags-proto-school}} \end{figure} Στο παραπάνω Merkle DAG τα baf...i αποτελούν τα CID των αρχείων και των φακέλων. Το δένδρο δημιουργείται από κάτω προς τα πάνω, υπολογίζοντας κάθε φορά τα κατάλληλα hashes/CIDs. Σε περίπτωση που το περιεχόμενο ενός κόμβου αλλάξει, τότε αλλάζει τόσο το CID του, όσο και τα CIDs όλων των προγόνων του. diff --git a/chapters/2.theoretical-background/2.8.orbit-db.tex b/chapters/2.theoretical-background/2.8.orbit-db.tex index becc61b..4adf7d2 100644 --- a/chapters/2.theoretical-background/2.8.orbit-db.tex +++ b/chapters/2.theoretical-background/2.8.orbit-db.tex @@ -2,7 +2,7 @@ \begin{figure}[H] \centering - \includegraphics[width=2cm]{orbitdb-logo.png} + \includegraphics[width=2cm]{assets/figures/orbitdb-logo.png} \caption{OrbitDB logo} \end{figure} @@ -29,7 +29,7 @@ \begin{figure}[H] \centering - \includegraphics[width=12cm]{orbitdb-identity.png} + \simplelisting[width=14cm]{orbit-db-identity.js} \caption{OrbitDB Identity} \end{figure} diff --git a/custom-commands/custom-listings.tex b/custom-commands/custom-listings.tex new file mode 100644 index 0000000..593578a --- /dev/null +++ b/custom-commands/custom-listings.tex @@ -0,0 +1,10 @@ +\newtcbinputlisting{\simplelisting}[2][]{ + listing file={assets/code/#2}, + title={}, + listing only, + boxrule=1pt, + minted language=javascript, + minted style=default, + minted options={breaklines, breaksymbol={}}, + #1 +} \ No newline at end of file diff --git a/custom-commands/custom-title.tex b/custom-commands/custom-title-page.tex similarity index 94% rename from custom-commands/custom-title.tex rename to custom-commands/custom-title-page.tex index a8723a2..d7101a6 100644 --- a/custom-commands/custom-title.tex +++ b/custom-commands/custom-title-page.tex @@ -20,19 +20,20 @@ \renewcommand\maketitle{ {\raggedright \begin{center} +\thispagestyle{empty} % Make the logo \makeatletter \centering\includegraphics[height=5cm]{\@logo} % Make the title -\vspace{3.44cm} +\vspace{3cm} {\huge \@title} % The authors, school and university name -\vspace{3.72cm} +\vspace{3cm} {\Large \@author} -\vspace{3.94cm} +\vspace{3cm} \begin{tabular}{rl} \textit{Επιβλέπων} & \@supervisor diff --git a/examples-page.tex b/examples-page.tex deleted file mode 100644 index e5b1c37..0000000 --- a/examples-page.tex +++ /dev/null @@ -1,21 +0,0 @@ -This is a list: -\begin{itemize} - \item item 1 - \item item 2 - \item item 3 -\end{itemize} - -This is some vertical space -\vspace{2cm} - -This is a numbered list: -\begin{enumerate} - \item asdf - \item fdas -\end{enumerate} - -\footnote{Here is a footnote} - -\texttt{This is monospace} -\newline -\newpage \ No newline at end of file diff --git a/packages.tex b/packages.tex index 9046ee9..3da6386 100644 --- a/packages.tex +++ b/packages.tex @@ -4,19 +4,31 @@ \usepackage[subpreambles=true]{standalone} % Used for all the files inside thesis directory -\usepackage{subfiles} - -% General styling settings -\usepackage{thesis-general} +\usepackage{subfiles} %TODO: possibly unused (remove?) % Paper size and margins \usepackage{geometry} +% --- Languages & Fonts --- +\usepackage{languages-fonts} + +% --- Styling --- +\usepackage{hyperref} % Extensive support for hypertext +\usepackage{authblk} % Support for footnote style author/affiliation +\usepackage{enumitem} % For item lists +\usepackage{greek-enumerate} % Greek enumeration for ordered item lists +\usepackage{float} % For \begin{figure}[H] +\usepackage[font={footnotesize, it}]{caption} % For captions under figures +\usepackage{csquotes} %TODO: unused atm (remove?) +\usepackage{minted} % Source code highlighting (make sure to add -shell-escape flag!) +\usepackage{tcolorbox} % Colored boxes +\tcbuselibrary{minted} % Make tcolorbox work with minted + +% --- Bibliography --- \usepackage[backend=bibtex, sorting=none]{biblatex} -\usepackage{csquotes} -\usepackage{listings} % Typeset source code listings -% Custom commands -\input{custom-commands/custom-title} +% --- Custom commands --- +\input{custom-commands/custom-title-page} \input{custom-commands/custom-lists} +\input{custom-commands/custom-listings} diff --git a/thesis-general.sty b/thesis-general.sty deleted file mode 100644 index 853fef8..0000000 --- a/thesis-general.sty +++ /dev/null @@ -1,12 +0,0 @@ -\ProvidesPackage{thesis-general} - -% --- Languages & Fonts --- -\usepackage{languages-fonts} - -% --- Styling --- -\usepackage{hyperref} % Extensive support for hypertext -\usepackage{authblk} % Support for footnote style author/affiliation -\usepackage{enumitem} % For item lists -\usepackage{greek-enumerate} % Greek enumeration for ordered item lists -\usepackage{float} % For \begin{figure}[H] -\usepackage[font={footnotesize, it}]{caption} % For captions under figures \ No newline at end of file diff --git a/thesis.pdf b/thesis.pdf index e04324d..8811ab4 100644 Binary files a/thesis.pdf and b/thesis.pdf differ diff --git a/thesis.tex b/thesis.tex index 6ae0e2a..c4407be 100644 --- a/thesis.tex +++ b/thesis.tex @@ -1,4 +1,4 @@ -\documentclass{report} +\documentclass[12pt]{report} % Custom packages \input{packages} @@ -9,18 +9,16 @@ % Paper size and margins \geometry{a4paper, top=2.5cm, bottom=2.5cm, left=2.2cm,right=2.2cm} +%TODO: check if it works or remove \graphicspath{{assets/figures}} -\input{thesis-details} +\input{title-page} \begin{document} % Makes the cover page \maketitle -% TODO: delete this -\input{examples-page} - \input{chapters/0.preamble/0.0.preamble} % start of thesis body diff --git a/thesis-details.tex b/title-page.tex similarity index 100% rename from thesis-details.tex rename to title-page.tex