WasmiumHashID
A way to create Cryptographically Secure ID's chronologically using TAI64N as the timestamp and Blake3 as the Cryptographic Hashing Algorithm.
This is useful where you need sorted IDs according to time. The first 12 bytes are the TAI64N timestamp while the rest 32 bytes represent a Blake3 hash.
To extract the secure hash, just read the array from the 12th byte.
The main data structure for the hash ID
Structure
Usage
use WasmiumHashID;
// The message in bytes
let message_id = ;
// Hash the message to get the `blake3::Hash`
let blake3_hash = hash;
// Generate the hash
let hash_id = new.build;
// Get the original TAI64N timestamp
get_timestamp;
// Get the orignal Blake3 Hash
get_blake3_hash;