Available on crate feature
std only.Structs§
- PoWChallenge
- Proof-of-Work Challenge
- PoWSolution
- Proof-of-Work Solution
Enums§
- PowError
- Error from the bounded / capped PoW solver (H3).
Constants§
- MAX_
CLIENT_ POW_ DIFFICULTY - Client-side cap on the PoW difficulty it will attempt to solve (H3). An
unauthenticated
HelloRetryRequestcarriesdifficultyverbatim; without a cap an injecteddifficulty = 255would make the client spin ~2^255 hashes forever. 24 sits strictly above every difficulty an honest server issues (load-tier max 16,ReputationTracker::MAX_DIFFICULTY20, the frozendifficulty: 20wire vector) yet is a sub-second solve (~2^24 hashes). - MAX_
SOLVE_ ITERATIONS - Hard iteration bound for
PoWChallenge::solve(H3) —2^32, ~2^8 expected attempts of headroom over the worst in-cap difficulty (2^24), so a legitimate solve effectively never spuriously fails while an infeasible one still terminates.