Skip to main content

Module v1

Module v1 

Source
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ยง

HsPowClientV1 ๐Ÿ”’
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.