uhash-core 0.4.2

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

uhash-core

UniversalHash v4 — democratic proof-of-work hash engine.

Primary API

  • [hash] — one-shot hash function
  • [UniversalHash] — reusable hasher (avoids re-allocation)
  • [meets_difficulty] / [verify] — proof verification
  • [build_input] / [challenge_input] — challenge utilities

Lithium v1 Protocol

The Lithium v1 adapter provides the canonical on-chain PoW surface:

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

no_std Support

This crate supports no_std environments with the alloc crate:

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