MCPcopy 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_blockMethod · 0.45
send_blockFunction · 0.45
send_txFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected