<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/parse2/poc, 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-17T10:30:15Z</updated>
<entry>
<title>tor-netdoc: votes: use EmbeddedCert for the authhcert</title>
<updated>2026-06-17T10:30:15Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-04T15:29:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5cc5b025c8fca362f99753339fa2f10525122a37'/>
<id>urn:sha1:5cc5b025c8fca362f99753339fa2f10525122a37</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: tests: Move ns poc tests to netstatus.rs</title>
<updated>2026-06-17T09:33:17Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-11T17:00:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f2fb598c08fb95a9e813c50bbccb767239a29f57'/>
<id>urn:sha1:f2fb598c08fb95a9e813c50bbccb767239a29f57</id>
<content type='text'>
We're going to turn these into full-on round-trip tests for both
flavours of consensus.

We must temporarily bodge the more comprehensive test, for plain con
sensuses, to to still use the actual document type from poc.  That
allows us to avoid changing the arguments to verify() etc.  (poc's
verify is subtly different to the real NetworkStatus's.)

When these tests were in poc, they were gated by the incomplete cfg on
the whole of poc.  Now they have one each.

Almost entirely code motion; review with
  git show --color-moved --color-moved-ws=allow-indentation-change
</content>
</entry>
<entry>
<title>tor-netdoc: tests: Move poc authcert test to authcert.rs</title>
<updated>2026-06-17T09:33:17Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-11T14:42:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=48aba6978c538ef4c16b9f2febc87223b8097b12'/>
<id>urn:sha1:48aba6978c538ef4c16b9f2febc87223b8097b12</id>
<content type='text'>
There is no separate poc authcert type any more.  This is a perfectly
fine test case.

Almost entirely code motion; review with
  git show --color-moved --color-moved-ws=allow-indentation-change
</content>
</entry>
<entry>
<title>tor-netdoc: poc tests: drop some unneeded &amp;'s</title>
<updated>2026-06-17T09:33:17Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-11T14:33:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2f11f7f1e6fa7d6a6203a9503e00bd0f5a392703'/>
<id>urn:sha1:2f11f7f1e6fa7d6a6203a9503e00bd0f5a392703</id>
<content type='text'>
clippy complains (clippy::needless_borrows_for_generic_args).

In poc, we have an allow with a TODO asking for this to be done
generally in the Arti codebase.

Let's postpone shaving that yak.
</content>
</entry>
<entry>
<title>tor-netdoc: poc tests: use normal names for authcerts</title>
<updated>2026-06-17T09:33:17Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-11T14:22:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f7bc7410109a2b3d7aa279793a269905e1c8e867'/>
<id>urn:sha1:f7bc7410109a2b3d7aa279793a269905e1c8e867</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: poc tests: simulate normal outside-poc variety module names</title>
<updated>2026-06-17T09:33:17Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-11T14:21:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=caf4a67f92a554f4cb3f24b24eaa4f9323df1791'/>
<id>urn:sha1:caf4a67f92a554f4cb3f24b24eaa4f9323df1791</id>
<content type='text'>
We are going to reuse/move this test code.  Ie, it is going to be
testing the real network document types.

The naming outside poc is different.  To make future diffs a bit less
noisy, change some type names in the test code and fudge it up with a
use.
</content>
</entry>
<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>
</feed>
