Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-for-Blockchain-Application-Development
/ Blockchain
Class
Blockchain
chapter 3/structs.rs:32–35 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
30
}
31
32
pub struct Blockchain {
33
tip_hash: Arc<RwLock<String>>, // hash of last block
34
db: Db,
35
}
36
37
pub struct Wallet {
38
pkcs8: Vec<u8>,
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected