Cover of Building Bitcoin in Rust

Building Bitcoin in Rust

by Lukas Hozda

Learn Rust by building bitcoin from scratch - a hands-on guide for programmers.Most programming books teach a language in isolation. This one teaches you Rust by building something real: a working bitcoin miner, wallet, and node. Starting with a close reading of the whitepaper, you map the theory and implement it piece by piece, learning Rust's ownership model, memory safety, and type system along the way.What you'll learn:The bitcoin whitepaper - analyzed section by section, then turned into codeRust fundamentals - memory model, pattern matching, lifetimes, the borrow checkerHow to build a bitcoin library with transactions, blocks, difficulty, and miningHow to build a wallet that creates and signs transactionsHow to build a node that syncs, validates, and communicates with peersFunctional and object-oriented programming patterns in RustWritten by a Rust developer who has worked in bitcoin infrastructure since 2020, this 432-page book is for IT students and professionals who know at least one language and want to learn Rust through a real project. All source code is on GitHub.Whether you're a developer curious about Rust or a bitcoiner who wants to understand the protocol at the code level, this book gets you building from page one.

Pages
432
First published
2024
Publisher
Braiins Systems, s.r.o.
This edition
September 2024
Language
English
ISBN-13
9788090925342
ISBN-10
8090925340

This record as JSON: api.metadata.dev/books/9788090925342