<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/parse2/poc/netstatus.rs, branch arti-v2.5.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.5.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.5.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-06-11T17:49:04Z</updated>
<entry>
<title>tor-netdoc: Rename variants in VerifyGeneralTrustedAuthorities</title>
<updated>2026-06-11T17:49:04Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-11T16:05:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=63869dcc4c2b38db376b024e7f83a6ebfcec165b'/>
<id>urn:sha1:63869dcc4c2b38db376b024e7f83a6ebfcec165b</id>
<content type='text'>
In a wip branch I added a variant, and clippy complained.  In this
case, I agree with clippy.

warning: all variants have the same postfix: `Authorities`
    --&gt; crates/tor-netdoc/src/doc/netstatus.rs:2335:1
     |
2335 | / pub(crate) enum VerifyGeneralTrustedAuthorities&lt;'r&gt; {
2336 | |     /// Trust these authorities.
2337 | |     TrustTheseAuthorities {
2338 | |         /// The HKP_auth_id_rsa
...    |
2357 | |     },
2358 | | }
     | |_^
     |
     = help: remove the postfixes and use full paths to the variants instead of glob imports
     = help: for further information visit https://rust-lang.github.io/rust-clippy/beta/index.html#enum_variant_names
note: the lint level is defined here
    --&gt; crates/tor-netdoc/src/lib.rs:9:9
     |
   9 | #![warn(clippy::all)]
     |         ^^^^^^^^^^^
     = note: `#[warn(clippy::enum_variant_names)]` implied by `#[warn(clippy::all)]`
</content>
</entry>
<entry>
<title>tor-netdoc: consensuses: Introduce VerifyGeneralTrustedAuthorities (fmt)</title>
<updated>2026-06-11T16:55:52Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-10T18:21:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e12f467e5d1e68395d1ba6941b4875771965edfe'/>
<id>urn:sha1:e12f467e5d1e68395d1ba6941b4875771965edfe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: consensuses: Introduce VerifyGeneralTrustedAuthorities</title>
<updated>2026-06-11T16:55:52Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-10T18:18:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=33c4c257bf2ead1e3ddcc892fc1fb346135399bd'/>
<id>urn:sha1:33c4c257bf2ead1e3ddcc892fc1fb346135399bd</id>
<content type='text'>
This avoids passing the threshold around as a bare usize, separated
out from the list of trusted authorities.

Roughly as discussed in
  https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4065#note_3423775

But, VGTA::HazardouslyAssumeAllAuthCertsAreRealAuthorities contains
n_authorities, not the thtreshold.  That's what its user has, and that
allows us to centralise the threshold calculation somewhat.

The situation with votes in poc is a bit odd now: we pass one cert and
then there's one authority so the threshold of 1 is calculated rather
than literal.  That's OK, but also we perhaps aren't going to use
verify_general for votes in the production.
</content>
</entry>
<entry>
<title>tor-netdoc: Apply deferred rustfmt import churn</title>
<updated>2026-06-11T16:55:52Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-03T18:31:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=aaf079db1983f42599435f7e31418c91bd4bfc6a'/>
<id>urn:sha1:aaf079db1983f42599435f7e31418c91bd4bfc6a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: ns verification: Allow "dry run" to just get missing certs info</title>
<updated>2026-06-11T16:55:52Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-03T17:52:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4cd5dd36fc3a3d4696f18aa215a31d45dbac3564'/>
<id>urn:sha1:4cd5dd36fc3a3d4696f18aa215a31d45dbac3564</id>
<content type='text'>
No functional change with the existing caller.
</content>
</entry>
<entry>
<title>tor-netdoc: ns verification: verify_general, return Result</title>
<updated>2026-06-11T16:55:52Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-03T17:11:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f2eee247c498267e00b4a83f8b4741ac8d2006c9'/>
<id>urn:sha1:f2eee247c498267e00b4a83f8b4741ac8d2006c9</id>
<content type='text'>
No functional change.
</content>
</entry>
<entry>
<title>tor-netdoc: poc: Abolish core of separate verification logic</title>
<updated>2026-06-11T16:55:21Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-02T13:52:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=091bb2e8dc183ceace711a08642503276abaa716'/>
<id>urn:sha1:091bb2e8dc183ceace711a08642503276abaa716</id>
<content type='text'>
In an attempt to check that the new verification code makes sense, we
compare it with the freshly rewritten one in poc.

To review this, compare the code being deleted with the body of
verify_general (doc/netstatus.rs, line 2164 et seq).

You'll also want to refer to the body of find_cert and
check_signature (lines 2068-2086).
</content>
</entry>
<entry>
<title>tor-netdoc: poc: Skip duplicate signatures earlier.</title>
<updated>2026-06-11T16:55:20Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-02T13:44:37Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=364759bf0cf0beb410e84e068293e33ac69eedb0'/>
<id>urn:sha1:364759bf0cf0beb410e84e068293e33ac69eedb0</id>
<content type='text'>
Like verify_general does.

(This wasn't a bug before, because we could the length of ok, so all
that would happen is we'd do some extra work.)
</content>
</entry>
<entry>
<title>tor-netdoc: poc: Reorder slightly</title>
<updated>2026-06-11T16:55:20Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-02T13:43:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=83808e289c2f6edef775fd4c033b09ad3fea1bf3'/>
<id>urn:sha1:83808e289c2f6edef775fd4c033b09ad3fea1bf3</id>
<content type='text'>
Obtain the hash first, like verify_general does.

No significant functional change, and this is poc code anyway.
</content>
</entry>
<entry>
<title>tor-netdoc: poc: Use let else continue (fmt)</title>
<updated>2026-06-11T16:55:20Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-02T13:27:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=27e2ccb8ab3352d6e2b0415c1b74d329ad0d043c'/>
<id>urn:sha1:27e2ccb8ab3352d6e2b0415c1b74d329ad0d043c</id>
<content type='text'>
</content>
</entry>
</feed>
