Module pow

Source
Expand description

Proof of Work schemes for onion services

Tor supports optional proof-of-work client puzzles, for mitigating denial of service attacks on onion services. This crate implements the specific puzzle algorithms we use, and components for client and service integration.

There is infrastructure to support new algorithms over time, but right now only a single algorithm is defined, named v1 and implemented via the equix crate.

Specification at: https://spec.torproject.org/hspow-spec/index.html

Modules§

err 🔒
Combined error types for any proof of work scheme
v1
v1 client puzzle using equix

Enums§

Error
Error type for the onion service proof of work subsystem
RuntimeError
Detailed runtime errors
SolutionError
Detailed errors for ways a solution can fail verification