Expand description
Client support for the v1 onion service proof of work scheme
Re-exportsยง
use crate::err::ProofOfWorkError;๐use tor_async_utils::oneshot;๐use tor_async_utils::oneshot::Canceled;๐use tor_cell::relaycell::hs::pow::v1::ProofOfWorkV1;๐use tor_checkable::TimeBound;๐use tor_checkable::timed::TimeRangeBound;๐use tor_hscrypto::pk::HsBlindId;๐use tor_hscrypto::pow::v1::Effort;๐use tor_hscrypto::pow::v1::Instance;๐use tor_hscrypto::pow::v1::SolverInput;๐use tor_netdoc::doc::hsdesc::pow::v1::PowParamsV1;๐use tracing::debug;๐use web_time_compat::Instant;๐use web_time_compat::InstantExt;๐
Structsยง
- HsPow
Client ๐V1 - Client-side state for the โv1โ scheme in particular
Constantsยง
- CLIENT_
MAX_ ๐POW_ EFFORT - Client maximum effort.
- CLIENT_
MIN_ ๐RETRY_ POW_ EFFORT - Minimum effort for retries.
- CLIENT_
POW_ ๐EFFORT_ DOUBLE_ UNTIL - Double effort at retry until this threshold.
- CLIENT_
POW_ ๐RETRY_ MULTIPLIER - Effort multiplier to use above the doubling threshold.