MCPcopy Index your code
hub / github.com/Justin02180218/blockchain_rust

github.com/Justin02180218/blockchain_rust @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
350 symbols 628 edges 92 files 2 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

blockchain_rust

本系列是用Rust实现简单的区块链,包括区块和区块链,工作量证明,交易和UTXO集合,持久化,钱包及用rust-libp2p实现的点对点分布式网络。

一,用Rust实现区块链 - 1 区块和区块链

二,用Rust实现区块链 - 2 工作量证明(PoW)

三,用Rust实现区块链 - 3 持久化

四,用Rust实现区块链 - 4 交易与UTXO集合

五,用Rust实现区块链 - 5 钱包

六,用Rust实现区块链 - 6 点对点网络(P2P)

代码详解,请关注微信公众号:coding到灯火阑珊

Image

Extension points exported contracts — how you extend this code

Storage (Interface)
(no doc) [1 implementers]
blockchain_rust_part_6/src/storage/mod.rs
Storage (Interface)
(no doc) [1 implementers]
blockchain_rust_part_3/src/storage/mod.rs
Storage (Interface)
(no doc) [1 implementers]
blockchain_rust_part_5/src/storage/mod.rs
Storage (Interface)
(no doc) [1 implementers]
blockchain_rust_part_4/src/storage/mod.rs

Core symbols most depended-on inside this repo

serialize
called by 8
blockchain_rust_part_6/src/utils/serializer.rs
serialize
called by 8
blockchain_rust_part_5/src/utils/serializer.rs
serialize
called by 7
blockchain_rust_part_4/src/utils/serializer.rs
get_height
called by 5
blockchain_rust_part_6/src/blocks/blockchain.rs
reindex
called by 5
blockchain_rust_part_6/src/transactions/utxo_set.rs
get_block_iter
called by 4
blockchain_rust_part_6/src/storage/sleddb.rs
set_hash
called by 4
blockchain_rust_part_6/src/transactions/transaction.rs
get_id
called by 4
blockchain_rust_part_6/src/transactions/transaction.rs

Shape

Method 230
Function 59
Class 49
Enum 8
Interface 4

Languages

Rust100%

Modules by API surface

blockchain_rust_part_6/src/storage/sleddb.rs12 symbols
blockchain_rust_part_5/src/storage/sleddb.rs12 symbols
blockchain_rust_part_4/src/storage/sleddb.rs12 symbols
blockchain_rust_part_6/src/transactions/transaction.rs11 symbols
blockchain_rust_part_6/src/blocks/blockchain.rs11 symbols
blockchain_rust_part_5/src/transactions/transaction.rs11 symbols
blockchain_rust_part_6/src/blocks/block.rs10 symbols
blockchain_rust_part_5/src/blocks/block.rs10 symbols
blockchain_rust_part_4/src/blocks/block.rs10 symbols
blockchain_rust_part_6/src/transactions/tx_input.rs9 symbols
blockchain_rust_part_6/src/networks/node.rs9 symbols
blockchain_rust_part_5/src/transactions/tx_input.rs9 symbols

For agents

$ claude mcp add blockchain_rust \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact