uhash-core 0.3.1

UniversalHash v4 - democratic proof-of-work algorithm where phones compete with servers
Documentation

uhash-core

Canonical M1 mining API in this crate is Lithium v1:

UniversalHash(SHA256(miner_address_utf8 || block_hash_32 || cyberlinks_merkle_32) || nonce_le_u64)

Use:

  • [lithium_header]
  • [lithium_preimage]
  • [lithium_hash]
  • [meets_difficulty]

Legacy UniversalHash v4 implementation is still present for compatibility tooling (UniversalHash, hash, v4 params), but it is non-canonical for lithium-v1 flow.

no_std Support

This crate supports no_std environments with the alloc crate:

[dependencies]
uhash-core = { version = "0.2", default-features = false }