pub fn block_with_hash(data: &[u8], algorithm: HashAlgorithm) -> Result<Block>Expand description
Creates a block with a specific hash algorithm.
ยงExamples
use ipfrs_core::{utils::block_with_hash, HashAlgorithm};
let block = block_with_hash(b"data", HashAlgorithm::Sha3_256).unwrap();