This repository contains the source files for a cryptography book covering schemes used for decentralized web ("web3"). The latest version of the book is available at https://yannickseurin.github.io/crypto-book/.
The book is built with mdBook using the following preprocessors:
- mdBook-KaTeX
- mdbook-toc
- mdbook-footnote
- mdbook-mermaid
- mdbook-admonish
- mdbook-numthm
- mdbook-numeq
- mdbook-mathpunc
First clone the repository:
git clone https://github.com/yannickseurin/crypto-book/
cd crypto-book
You must have Rust installed. Visit this page for installation instructions.
Then install mdbook and the preprocessors with:
cargo install mdbook
cargo install mdbook-katex mdbook-toc mdbook-footnote mdbook-mermaid mdbook-admonish mdbook-numthm mdbook-numeq mdbook-mathpunc
Then run mdbook-admonish to install required CSS files:
mdbook-admonish install --css-dir ./assets
mdbook-admonish generate-custom ./assets/mdbook-admonish-custom.css
Then run:
mdbook serve --open
This will start a web server with the book.
You'll find the content on http://localhost:3000.
You can also use mdbook build
to create a static version of the book in the book/
directory.