Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-for-Blockchain-Application-Development
/ get_hash
Method
get_hash
chapter 3/block.rs:71–73 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
69
}
70
71
pub fn get_hash(&self) -> &str {
72
self.hash.as_str()
73
}
74
75
pub fn get_hash_bytes(&self) -> Vec<u8> {
76
self.hash.as_bytes().to_vec()
Callers
4
create_blockchain
Method · 0.45
update_blocks_tree
Method · 0.45
mine_block
Method · 0.45
add_block
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected