MCPcopy Index your code
hub / github.com/PacktPublishing/Rust-for-Blockchain-Application-Development

github.com/PacktPublishing/Rust-for-Blockchain-Application-Development @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
465 symbols 1,029 edges 45 files 12 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Rust for Blockchain Application Development

no-image

This is the code repository for Rust for Blockchain Application Development, published by Packt.

Learn to build decentralized applications on popular blockchain technologies using Rust

What is this book about?

This book helps you build your own blockchains and production-grade decentralized apps on blockchains like Ethereum, Solana, NEAR, and Polkadot. You’ll explore best practices, code, and assets that can be used for scaffolding multiple projects.

This book covers the following exciting features: * Understand essential Rust concepts required to build blockchain * Apply blockchain features such as nodes and p2 communication using Rust * Understand and implement consensus in blockchain * Build and deploy a dApp on Ethereum with the Foundry framework in Rust * Develop and deploy a dApp on Solana and the NEAR protocol * Build a custom blockchain using the Substrate framework by Polkadot

If you feel this book is for you, get your copy today! https://www.packtpub.com/

Instructions and Navigations

All of the code is organized into folders. For example, Chapter02.

The code will look like the following:

pub struct Block {
    timestamp: i64,
    pre_block_hash: String,
    hash: String,
    transactions: Vec<Transaction>,
    nonce: i64,
    height: usize,
}

Following is what you need for this book: This Rust programming book is for blockchain developers interested in building dApps on popular blockchains using Rust. Blockchain architects wanting to save time required to go through documentation and understand each technology can also use this book as a quick-start guide. Experience in building applications on blockchain is required, and familiarity with Rust will be helpful but not necessary.

With the following software and hardware list you can run all code files present in the book (Chapter 1-11).

Software and Hardware List

Chapter Software required OS required
1-11 Rust 1.74.0 or higher Windows, macOS, or Linux
1-11 Cargo Windows, macOS, or Linux

Related products

Get to Know the Author

Akhil Sharma is the Founder at Armur AI, a cybersecurity company that is backed by Techstars, Outlier Ventures, Aptos and is part of the Google AI startups cloud program. Akhil teaches advanced engineering topics (Rust, GO, Blockchain, AI) on his Youtube channel and has mentored more than 200K engineers across platforms like Linkedin Learning, Udemy and Packt. Being deeply involved with multiple Rust-based blockchain communities like Aptos, Solana and Polkadot inspired Akhil to write this book. In his free time, Akhil likes to train in Jiu Jitsu, play the guitar or surf.

Core symbols most depended-on inside this repo

get
called by 21
chapter 5/memory_pool.rs
get
called by 15
complete_blockchain/src/memory_pool.rs
get_txid
called by 13
complete_blockchain/src/transactions.rs
get_txid
called by 13
chapter 5/transactions.rs
get_id
called by 9
complete_blockchain/src/transactions.rs
len
called by 9
complete_blockchain/src/node.rs
get_addr
called by 8
chapter 4/node.rs
get
called by 8
chapter 3/req_functions.rs

Shape

Method 322
Class 76
Function 59
Enum 8

Languages

Rust100%
TypeScript1%

Modules by API surface

complete_blockchain/src/req_functions.rs54 symbols
chapter 3/req_functions.rs54 symbols
complete_blockchain/src/transactions.rs24 symbols
chapter 5/transactions.rs24 symbols
complete_blockchain/src/blockchain.rs18 symbols
chapter 4/blockchain.rs18 symbols
complete_blockchain/src/block.rs17 symbols
chapter 3/block.rs17 symbols
chapter 8/foundational elements of NEAR.rs16 symbols
complete_blockchain/src/wallets.rs15 symbols
chapter 5/wallets.rs15 symbols
complete_blockchain/src/server.rs13 symbols

For agents

$ claude mcp add Rust-for-Blockchain-Application-Development \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact