MCPcopy 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
32pub struct Blockchain {
33 tip_hash: Arc<RwLock<String>>, // hash of last block
34 db: Db,
35}
36
37pub struct Wallet {
38 pkcs8: Vec<u8>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected