Crate blockcrypt

Source
Expand description

Blockchain Crypt A library for making a PoW blockchain with minimal functionality.

Re-exports§

pub use crate::transaction::Transaction;

Modules§

transaction

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