Expand description
Blockchain Crypt A library for making a PoW blockchain with minimal functionality.
Re-exports§
pub use crate::transaction::Transaction;
Modules§
Structs§
- Block
- The Block structure
- Blockchain
Traits§
- Hash
- Defines a trait for hashing.
Functions§
- difficulty_
bytes_ as_ u128 - Converts the difficulty into bytes
- now
- Returns the current time in seconds since the UNIX epoch.
- u32_
bytes - Converts the given 32 bit unsigned integer into bytes
- u64_
bytes - Converts the given 64 bit unsigned integer into bytes
- u128_
bytes - Converts the given 128 bit unsigned integer into bytes