Skip to content

Instantly share code, notes, and snippets.

View dandax123's full-sized avatar

dandax123 dandax123

View GitHub Profile
use std::fmt::{self, Debug, Display};
use sha2::{Digest, Sha256};
use std::rc::Rc;
const NUM_OF_ZEROS: usize = 3;
pub struct Block<T: std::fmt::Display> {
pub prev_block_hash: String,
nonce: u32,