Rust for Blockchain Application Development Learn to Build Decentralized Applications on Popular Blockchain Technologies Using Rust

Rust for Blockchain Application Development focuses on demonstrating solutions that can help blockchain developers productize decentralized applications using Rust, which is a complex language with a steep learning curve. This book starts with basic Rust language concepts and then builds on these co...

Full description

Bibliographic Details
Main Author: Sharma, Akhil
Format: eBook
Language:English
Published: Birmingham Packt Publishing, Limited 2024
Edition:1st edition
Subjects:
Online Access:
Collection: O'Reilly - Collection details see MPG.ReNa
Table of Contents:
  • The benefit of being statically typed
  • A dive into Rust's applicability as a systems programming language
  • The reliability of Rust
  • The Rust ownership memory management model
  • Garbage collection
  • Speed and performance
  • Futures, error handling, and memory safety
  • Rust's advantage for blockchains
  • Blockchains that use Rust
  • Foundry for Ethereum
  • The Fe, Move, and ink! languages
  • Interesting blockchain projects built with Rust
  • Advantages of Rust-based languages compared to Solidity
  • Learning basic Rust concepts
  • Variables and constants
  • Data types
  • Tuples and arrays
  • Decentralized platforms
  • Tokens versus coins and ICOs
  • Smart contracts and NFTs
  • DAOs
  • Non-censorable apps
  • Digital assets with real-world limits
  • Scaling the blockchain
  • The blockchain trilemma
  • Sharding
  • Interoperability
  • Consensus for scale
  • Parallel processing
  • Layer 2s and side chains
  • ZK rollups and optimistic rollups
  • Introducing smart contracts
  • The future of the adoption of blockchains
  • Industries disrupted
  • Sociocultural and economic changes
  • Summary
  • Chapter 2: Rust
  • Necessary Concepts for Building Blockchains
  • Introducing Rust
  • Cover
  • Title Page
  • Copyright and Credits
  • Dedicated
  • Contributors
  • Table of Contents
  • Preface
  • Part 1: Blockchains and Rust
  • Chapter 1: Blockchains with Rust
  • Laying the foundation with the building blocks of blockchains
  • Blocks
  • Hashes
  • Transactions
  • Security
  • Storage versus compute
  • Exploring the backbone of blockchains
  • Decentralization
  • Peers, nodes, validators, and collators
  • Consensus
  • Mining
  • Forking
  • Permissioned versus permissionless
  • Understanding decentralization
  • Replication
  • Governance
  • Cryptocurrencies and gas fees
  • Required functions
  • Getting started with building the blockchain
  • Block
  • Creating the genesis block
  • Using helper functions
  • Exploring embedded databases
  • Summary
  • Chapter 4: Adding More Features to Our Custom Blockchain
  • Technical requirements
  • Connecting the blocks
  • Libraries powering blockchain operations
  • Blockchain functions
  • Starting the node server
  • The server
  • Server struct and implemented methods
  • Enums
  • Helper functions
  • The serve function
  • The Node struct
  • Summary
  • Chapter 5: Finishing Up Our Custom Blockchain
  • Technical requirements
  • Numeric operations
  • Stack
  • Heap
  • V-tables
  • Slices
  • Strings
  • Enums
  • Exploring intermediate Rust concepts
  • Control flow
  • While loops
  • Functions
  • Match control flow
  • Structs
  • Vectors
  • Delving deep into advanced Rust concepts
  • Hashmaps
  • Ownership and borrowing
  • Crates, modules, and cargo
  • Summary
  • Part 2: Building the Blockchain
  • Chapter 3: Building a Custom Blockchain
  • Technical requirements
  • Windows installation
  • Mac installation
  • Ubuntu installation
  • VS Code
  • rust-analyzer
  • Cargo
  • Planning our first blockchain project
  • Structs