<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/doc/routerdesc.rs, branch arti-v0.4.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.4.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.4.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-05-23T16:55:37Z</updated>
<entry>
<title>Resolve the new `derive_partial_eq_without_eq` lint.</title>
<updated>2022-05-23T16:55:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-05-23T16:32:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=546ae3000eb179aedc97de30b0ccdb1d45b93395'/>
<id>urn:sha1:546ae3000eb179aedc97de30b0ccdb1d45b93395</id>
<content type='text'>
It's a little overzealous sometimes, but it's mostly to the good.
</content>
</entry>
<entry>
<title>netdoc: add a new type for Nicknames</title>
<updated>2022-05-09T19:59:38Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-10T21:38:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3b0336e841f537196408f43a4928df20398c160d'/>
<id>urn:sha1:3b0336e841f537196408f43a4928df20398c160d</id>
<content type='text'>
Relay nicknames are always between 1 and 19 characters long, and
they're always ASCII: That means that storing them in a [u8;19] will
always be possible, and always use less resources than storing them
in a String.

Fortunately, the tinystr crate already helps us with this kind of
thing.
</content>
</entry>
<entry>
<title>tor-netdoc: Conditionally expose document fields.</title>
<updated>2022-03-31T13:27:27Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-31T13:20:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b1b7ef00a0f96c3d878788cd890ed67656bcc1f4'/>
<id>urn:sha1:b1b7ef00a0f96c3d878788cd890ed67656bcc1f4</id>
<content type='text'>
This commit uses the `visibility` and `visible` crates to
conditionally make certain structs and their fields public
(respectively).  This is incredibly dangerous to use for anything
besides testing, and I've tried to write the documentation for the
feature accordingly.
</content>
</entry>
<entry>
<title>Canonicalize and intern protover lines on descriptors</title>
<updated>2022-03-11T21:56:12Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-10T16:39:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a98ae2a1f06a50238a4eb89d5d181ccc5c1a65c2'/>
<id>urn:sha1:a98ae2a1f06a50238a4eb89d5d181ccc5c1a65c2</id>
<content type='text'>
This should save around 1MB per consensus, since every relay has a
'protocols' lines, but there are only a few distinct possibilities
for such a line.

Closes #385.
</content>
</entry>
<entry>
<title>Canonicalize and intern family representations to save memory.</title>
<updated>2022-03-11T21:54:33Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-03-10T16:17:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=16f1bda3241e9f92a41a187cbb06c1c0b659a67c'/>
<id>urn:sha1:16f1bda3241e9f92a41a187cbb06c1c0b659a67c</id>
<content type='text'>
This should save 1-3 MB of ram on each running arti client.

Closes #384. See also tor#27359 and proposal 298.
</content>
</entry>
<entry>
<title>Refactor tor_netdoc::Error</title>
<updated>2022-02-14T18:08:28Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-14T18:08:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b6d23c36bef1322e4fc6f89769222daa91c4d8f3'/>
<id>urn:sha1:b6d23c36bef1322e4fc6f89769222daa91c4d8f3</id>
<content type='text'>
This error type doesn't impement HasKind, since the kind will depend
on context.

However, the existing implementation was pretty messy and inconsistent:
Some errors had positions, some didn't.
Some took messages as str, some as String.
Some had internal errors that were somewhat orthogonal to their actual
types.

This commit refactors tor_netdoc::Error to use a ParseErrorKind, and
adds a set of convenience functions to add positions and
messages to the errors that need them.
</content>
</entry>
<entry>
<title>tor-netdoc: Change an XXX to a TODO.</title>
<updated>2021-12-20T14:46:56Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-12-20T14:46:56Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8cf143217e2655b90cb2a8690bc4ef75957906df'/>
<id>urn:sha1:8cf143217e2655b90cb2a8690bc4ef75957906df</id>
<content type='text'>
Our behavior in handling not-yet-valid router descriptors doesn't match
the C Tor implementation, but it's not a big deal:
we don't currently use router descriptors at all.
</content>
</entry>
<entry>
<title>tor-netdoc: Use a more correct error type</title>
<updated>2021-12-20T13:58:30Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-12-20T13:58:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6299ca70b43a8e93064fbd12e249f74566761d68'/>
<id>urn:sha1:6299ca70b43a8e93064fbd12e249f74566761d68</id>
<content type='text'>
If we fail to convert a curve25519 key to an ed25519 key for checking
the onion-key crosscert, don't call that an internal error: it means
that something is wrong with the provided ntor key.
</content>
</entry>
<entry>
<title>Remove an XXXX about ed25519 signatures.</title>
<updated>2021-12-20T13:53:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-12-20T13:53:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=92e53bff62742bce06989f6ad560f9510274d520'/>
<id>urn:sha1:92e53bff62742bce06989f6ad560f9510274d520</id>
<content type='text'>
As of tor-spec commit 01122c5bd7d2f0f, the spec is no longer ambiguous
on this point.
</content>
</entry>
<entry>
<title>Run "cargo update" to get latest versions.</title>
<updated>2021-11-29T19:52:53Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-11-29T19:45:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=805e558045018663d0d47b5f30733c6ca19b86ac'/>
<id>urn:sha1:805e558045018663d0d47b5f30733c6ca19b86ac</id>
<content type='text'>
Also fix a couple of warnings introduced by now-unneeded imports
with new ed25519 crate.

This is part of the process for releasing our next version.
</content>
</entry>
</feed>
