Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Rust-for-Blockchain-Application-Development
/ serialize
Method
serialize
chapter 3/block.rs:45–47 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
43
44
45
pub fn serialize(&self) -> Vec<u8> {
46
bincode::serialize(self).unwrap().to_vec()
47
}
48
49
50
pub fn generate_genesis_block(transaction: &Transaction) -> Block {
Callers
3
add_block
Method · 0.45
send_block
Function · 0.45
send_tx
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected