Автор: Lukas Hozda
Издательство: Braiins
Год: 2024
Страниц: 419
Язык: английский
Формат: pdf (true)
Размер: 10.1 MB
"Building bitcoin in Rust" by Lukáš Hozda is an accessible guide for those interested in both the Rust programming language and bitcoin technology. Designed for IT students and professionals, this book takes readers through the process of understanding bitcoin’s core concepts while simultaneously teaching them to build projects in Rust. It’s perfect for anyone who is curious about Rust, a programming language praised for its safety and performance, or bitcoin, the world’s first decentralized cryptocurrency. Through hands-on development of a bitcoin miner, wallet, and node, this book helps readers sharpen their Rust skills and explore bitcoin’s infrastructure, making it an ideal starting point for building on bitcoin.
This book is not a complete overview of bitcoin nor a complete reference for Rust. Our journey aims to introduce new concepts one by one and immediately put them to good use. We will begin by looking at the cornerstone of bitcoin - its whitepaper. The whitepaper is a remarkably short and well-written document, and we will read and examine it together. As we do so, we will learn about bitcoin in theory. We can map out how to apply the theory based on our new knowledge. We will do this by conceiving a plan and then executing it bit by bit, learning Rust along the way. Together, we will build the three necessary components of our toy bitcoin:
- the miner
- the CLI wallet
- the bitcoin node
When all the components are ready, we will deploy and kickstart our blockchain. You will then be able to enjoy the fruits of your labor, send fake sats to your friends, and include this project in your portfolio. One thing to note is that we will neither be writing the perfect Rust, nor will we be making the perfect bitcoin. Compromises have to be made, otherwise this book would have been three times as long, and to be fair, maybe not as exciting. Sounds good? Let‘s get on with it. Have fun and enjoy the adventure.
To make the most out of this book, you should meet a couple of requirements. This book is beginner-friendly, but it is only for some beginners. You need to know at least one other programming language. Statically-typed languages prepare you the best (Java, Kotlin, C#, C/C++...), but dynamically-typed are alright too (Python, jаvascript...). Mastering a functional programming language (Haskell, OCaml, F#...) makes you a superstar, and learning Rust will be a breeze.
Who is this book for?
The primary target audience is people in the field of IT, both students and professionals. The optimal intersection is for those who like both bitcoin and programming. If you keep up with IT news, you have undoubtedly heard about Rust: the up-and-coming star programming language. Bitcoin, conversely, remains the time-tested, golden standard of cryptocurrency.
You do not need to have an interest in both. This book may be the final bargaining chip to convince you that Rust is a great tool or that bitcoin does, in fact, represent sound money based on its technical merits alone.
If you are a Computer Science student looking to learn something new, welcome, you are in the right place. If you are a bitcoin enthusiast with some programming knowledge - perfect, you will have a great time. Programmers looking to learn Rust or to add another project to their portfolio? Come aboard!
Скачать Building bitcoin in Rust