blockchainblock/lib.rs
1//! Provides a customizable base for a blockchain implementation
2
3#![warn(missing_docs)]
4
5/// Version of the protocol as appearing in block headers.
6pub const VERSION: u8 = 1;
7/// Lenght of the Hash block.
8pub const BLOCKHASHLEN : usize = 32; // 2^8 * 2^5
9/// Hash block representation.
10pub type BlockHash = [u8; BLOCKHASHLEN]; // to store SHA256
11
12mod byteable;
13pub use crate::byteable::Byteable;
14mod hashable;
15pub use crate::hashable::Hashable;
16// thanks to https://github.com/GeekLaunch/blockchain-rust
17mod blockchainblock;
18pub use crate::blockchainblock::BlockchainBlock;