Expand description
Basic types used by the v1 client puzzle
Re-exportsยง
use crate::pk::HsBlindId;๐use crate::pow::v1::err::SolutionErrorV1;๐use serde::Deserialize;๐use serde::Deserialize;๐use serde::Serialize;๐use serde::Serialize;๐use tor_bytes::EncodeResult;๐use tor_bytes::Readable;๐use tor_bytes::Reader;๐use tor_bytes::Writeable;๐use tor_bytes::Writer;๐use rand::prelude::*;๐
Macrosยง
- impl_
readable_ ๐writeable_ newtype - Generate
ReadableandWriteableimplementations for trivial newtype wrappers
Structsยง
- Effort
- Effort setting, a u32 value with linear scale
- Instance
- One instance of this proof-of-work puzzle
- Nonce
- Generated randomly by solvers and included in the solution
- Seed
- The random portion of a challenge, distributed through HsDir
- Seed
Head - A short seed prefix used in solutions to reference the complete seed
- Solution
- One potential solution to some puzzle
Instance
Enumsยง
- Parse
Seed Error - Error when converting a string to a
Seed.
Constantsยง
- NONCE_
LEN - Length of the nonce value generated by clients and included in the solution
- SEED_
HEAD_ LEN - Length of a seed prefix used to identify the entire seed
- SEED_
LEN - Length of the random seed generated by servers and included in HsDir