| 1 | // represent a block from a blockchain, using Rust structs |
| 2 | |
| 3 | pub struct Block { |
| 4 | pub id: u64, |
| 5 | pub hash: String, |
| 6 | pub previous_hash: String, |
| 7 | pub timestamp: i64, |
| 8 | pub txn_data: String, |
| 9 | pub nonce: u64, |
| 10 | } |
| 11 | |
| 12 | |
| 13 | // blockchain can be represented |
nothing calls this directly
no outgoing calls
no test coverage detected