summaryrefslogtreecommitdiff
path: root/crates/tor-hscrypto/src/pow/v1.rs
blob: 68cb55f57a8a3b4c4bdc5477c3b32491a65e0375 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//! `v1` client puzzle using [`equix`]
//!
//! This was the first proof-of-work scheme defined for Tor, and currently it's the only one we
//! have.
//!
//! Originally defined in proposal 327, and now part of the main specification:
//! <https://spec.torproject.org/hspow-spec/index.html>

mod challenge;
mod err;
mod solve;
mod types;
mod verify;

pub use equix::{RuntimeOption, SolutionByteArray};
pub use err::{RuntimeErrorV1, SolutionErrorV1};
pub use solve::{Solver, SolverInput};
pub use types::*;
pub use verify::Verifier;