aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc
Commit message (Collapse)AuthorAgeFilesLines
...
* tor-netdoc: Fix grammar in a commentIan Jackson2026-07-221-1/+1
|
* tor-netdoc tests; work around version number ordering issueIan Jackson2026-07-211-0/+16
| | | | | | | | | Ideally we would have Arti sort things sensibly but currently we have no types in Arti that are (1) faithful (2) sort correctly. Most of the existing types eventually have a `TorVersion` inside, which is lossy, so we can't use them for (eg) dirauth network status processing.
* Use new TimeRangeBound name throughout the treeIan Jackson2026-07-1610-40/+40
|
* Use new TimeBound name throughout the treeIan Jackson2026-07-168-17/+17
|
* tor-netdoc: Expose ConsensusMethod's fieldIan Jackson2026-07-151-1/+2
|
* tor-netdoc: Stabilise votes and encoding of authcerts (formatting)Ian Jackson2026-07-153-13/+8
|
* tor-netdoc: Stabilise votes and encoding of authcertsIan Jackson2026-07-158-37/+13
|
* tor-netdoc: Remove a now-unnecessary allowIan Jackson2026-07-151-1/+0
|
* tor-netdoc: drop a done TODOIan Jackson2026-07-151-3/+0
| | | | torspec!499 is merged.
* tor-netdoc tests: Test consensus verification error casesIan Jackson2026-07-153-5/+104
|
* tor-netdoc tests: Break out prep_netstatus_verify (fmt)Ian Jackson2026-07-151-6/+1
|
* tor-netdoc tests: Break out prep_netstatus_verifyIan Jackson2026-07-151-18/+32
|
* tor-netdoc tests: Test roundtrip of subset of live dataIan Jackson2026-07-151-2/+50
| | | | With facility to test roundtrip of whole consensus.
* tor-netdoc: Add some missing "retain-unknown" cfg gates to testsIan Jackson2026-07-151-4/+4
| | | | Nothing in CI tests incomplete without retain-unknown, apparently.
* tor-netdoc: Now that poc is gone, make some things no longer pub(crate)Ian Jackson2026-07-151-9/+4
|
* Merge branch 'clippy_warning' into 'main'Jim Newsome2026-07-131-1/+1
|\ | | | | | | | | multiple crates: Fix clippy warnings See merge request tpo/core/arti!4203
| * multiple crates: Fix clippy warningshjrgrn2026-07-101-1/+1
| |
* | Merge branch 'upgrade-cipher' into 'main'gabi-2502026-07-131-1/+1
|\ \ | |/ |/| | | | | Upgrade cipher, aes, and ctr. See merge request tpo/core/arti!4195
| * Upgrade cipher, aes, and ctr.Nick Mathewson2026-07-131-1/+1
| |
* | Change HS descriptor sendme_inc into a NonZeroU8Nick Mathewson2026-07-022-7/+10
| | | | | | | | | | This saves us from having to check whether it is 0, and better represents what the type is allowed to be.
* | netdoc: Add new capability negotiation pieces to hsdesc.Nick Mathewson2026-07-024-5/+174
| | | | | | | | | | | | | | | | The "flow-control" item is documented in proposal 324 section 9.1; there's a ticket (torspec#418) to document it. The "proto" item is documented at https://spec.torproject.org/rend-spec/hsdesc-encrypt.html#item:proto
* | tor-netdoc: Remove Eq on various typesClara Engler2026-07-021-2/+2
| | | | | | | | | | This reverts the Eq derives added in !4150 while keeping the PartialEq, in order to support including this in Unknown.
* | tor-netdoc: Add TODO for .encode_sign()Clara Engler2026-07-021-0/+1
| |
* | tor-netdoc: Change concept of test_parse2Clara Engler2026-07-021-4/+4
| | | | | | | | | | | | | | This test is now called test_parse2_simple and intended to test simple parse2 and encode round-trip functionality without edge-cases and such. More edge tests will be added once we have a proper verification logic.
* | tor-netdoc: Round-trip encoding testClara Engler2026-07-021-1/+23
| | | | | | | | | | | | This commit adds a round-trip encoding test to test_parse2 that encodes the decoded results and decodes them again in order to verify that the again decoded result is equal to the original one.
* | tor-netdoc: Adjust test_parse2 to keep signaturesClara Engler2026-07-021-4/+5
| | | | | | | | | | | | | | Required for round trip encode testing which we will add in the next commit. We only keep the actual RouterDescSignatures because then we can do Eq.
* | tor-netdoc: NetdocEncodable for RouterDescClara Engler2026-07-021-5/+7
| |
* | tor-netdoc: NetdocEncodable for RouterDescSignaturesClara Engler2026-07-021-1/+1
|/
* tor-netdoc: Derive Eq on RouterDescSignaturesClara Engler2026-06-291-1/+1
|
* tor-netdoc: Derive Eq on RouterDescClara Engler2026-06-291-1/+1
|
* Merge branch 'microdesc-sha' into 'main'Clara Engler2026-06-252-48/+65
|\ | | | | | | | | tor-netdoc: Remove document hash from Microdesc struct (and add MicrodescAndHash for that) See merge request tpo/core/arti!4138
| * Apply deferred rustfmt churnIan Jackson2026-06-222-9/+2
| |
| * tor-netdoc: Break Microdesc up into Microdesc and MicrodescAndHashIan Jackson2026-06-222-28/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | The Microdesc type having a copy of the document hash was always weird, and it's weirder now that there's all these parse2 types that don't have it and parse2 derives on Microdesc that don't touch it. Make a new type for the descriptor and its hash. Use deref to arrange that the new type works almost like the old one. Adjust the use lines in the dependencies to temporarily import MicrodescAndHash as Microdesc.
| * tor-netdoc: Move some Microdesc methodsIan Jackson2026-06-221-20/+23
| | | | | | | | | | Code motion, plus adding a new impl block, to make the next commit clearer.
* | tor-netdoc: Replace string slices with str::get() in doc (fmt)Clara Engler2026-06-243-5/+19
| | | | | | | | No functional change, just reformatting.
* | tor-netdoc: Replace string slices with str::get() in docClara Engler2026-06-245-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | This commit replaces the use of string slices with str::get() in all document related code. While this is not a perfect replacement for it, the relevant parts in the code heavily depend upon the byte offsets returned by the low level (legacy) parser where changing it would lead to a very big refactoring. Nonetheless, this approach is better because returning a bug is better than crashing.
* | tor-netdoc: Fix rs.rs cache commentsClara Engler2026-06-241-1/+1
| | | | | | | | Removes a blocking comment and replaces it with a TODO DIRAUTH.
* | tor-netdoc: Wrap port policies in InternClara Engler2026-06-242-7/+5
| | | | | | | | This commit wraps the port policies in an Intern.
* | tor-netdoc: Wrap family in InternClara Engler2026-06-242-4/+6
| | | | | | | | This commit wraps the relay family in an Intern instead of an Arc.
* | Use Intern<T> (fmt)Clara Engler2026-06-241-1/+3
| | | | | | | | No functional change.
* | Use Intern<T>Clara Engler2026-06-241-1/+2
| | | | | | | | | | This commit modifies the codebase to actually return Intern<T> in InternCache<T> and adds calls to .into() accordingly.
* | Merge branch 'rd-derive-parse' into 'main'Ian Jackson2026-06-231-2/+51
|\ \ | |/ |/| | | | | Derive NetdocParseableUnverified for RouterDesc See merge request tpo/core/arti!4134
| * tor-netdoc: Add TODOClara Engler2026-06-231-1/+1
| |
| * tor-netdoc: Replace assume_wellsigned() with unwrap_unverified()Clara Engler2026-06-231-10/+3
| |
| * tor-netdoc: Add small RouterDesc parse2 testClara Engler2026-06-221-0/+35
| | | | | | | | | | | | | | | | | | This adds a very small RouterDesc parse2 test only verifying whether the testdata2 gets properly parsed, with a minimal length verification alongside two identity related fields. Once we have encoding and verification support, we have to extend this test of course.
| * tor-netdoc: Add test only RouterDesc verifyClara Engler2026-06-221-1/+8
| | | | | | | | | | Only for testing, just returns the inner body. Will be removed once we have a proper verify method.
| * Derive NetdocParseableUnverified for RouterDescClara Engler2026-06-221-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Finally! 🎉 This commit derives NetdocParseableUnverified for RouterDesc by adding the respective derive_deftly attributes to the top-level definition as well as the member fields that require it. A .verify() method as well as unit tests will be added in the next commits. Encoding still depends on a few tiny papercuts but will otherwise be added shortly too, although in a different branch.
* | tor-netdoc: Microdesc: derive ConstructorIan Jackson2026-06-222-2/+11
| |
* | tor-netdoc Micordesc: Make intro item type publicIan Jackson2026-06-221-6/+6
| | | | | | | | | | We don't need the type to be private. Indeed, we'd like it not to be to make Microdesc construction with Constructor regular
* | tor-netdoc Micordesc: rename the intro item typeIan Jackson2026-06-221-3/+3
| | | | | | | | | | "OnionKeyIntro" is particularly odd. Mostly people won't need to refer to this, anyway.