<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/semver.md, branch arti-v1.1.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-10-18T15:49:21Z</updated>
<entry>
<title>proto: Make Channel::reparameterize take &amp;self.</title>
<updated>2022-10-18T15:49:21Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-14T20:51:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=61a33da0ff6dd3730a0c966a29d790538e07b2bd'/>
<id>urn:sha1:61a33da0ff6dd3730a0c966a29d790538e07b2bd</id>
<content type='text'>
Even though channels are practically changeable, they use locks
internally so that you don't need a `&amp;mut Channel` to send or
receive traffic.  It makes sense for reparameterizing the channel to
also use a &amp;self reference.

I'll need this so that I can store channels in an `ByRelayIds&lt;&gt;`
set, and still invoke their reparameterize methods.
</content>
</entry>
<entry>
<title>proto: Implement HasRelayIds for Channel.</title>
<updated>2022-10-18T15:49:21Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-13T14:59:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=96493f427d5115685cd21ecc70063d79d8cbb283'/>
<id>urn:sha1:96493f427d5115685cd21ecc70063d79d8cbb283</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: Preserve the ChannelMethod, not the SocketAddr</title>
<updated>2022-10-06T19:13:05Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-05T17:31:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=34c9178feb45db1e71aaa12ccd271f35b4a97fe1'/>
<id>urn:sha1:34c9178feb45db1e71aaa12ccd271f35b4a97fe1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove semver.md from arti-1.0.0</title>
<updated>2022-09-07T13:17:00Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-09-07T13:17:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a5f704f44357daf0104a7cc8caeb425d9d6c390d'/>
<id>urn:sha1:a5f704f44357daf0104a7cc8caeb425d9d6c390d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add semver notes</title>
<updated>2022-08-17T09:54:41Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-08-09T12:06:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d9338293c8d6702087d38c1442965f60c6c7ce9c'/>
<id>urn:sha1:d9338293c8d6702087d38c1442965f60c6c7ce9c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Final (?) API revisions for tor-linkspec</title>
<updated>2022-08-10T14:39:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-05T15:47:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2d4507ff35f8e8cf874c81d3754804b2c20f31aa'/>
<id>urn:sha1:2d4507ff35f8e8cf874c81d3754804b2c20f31aa</id>
<content type='text'>
With this change, each individual identity type becomes optional.
The functions that expose them unconditionally are now in a "legacy"
trait that only some downstream types are expected to implement.

There are new convenience APIs in HasRelayIds:
  * to return Option&lt;&amp;keytype&gt;,
  * to see if one identity-set contains another.

This commit will break several downstream crates!  For the
reviewer's convenience, I will put the fixes for those crates into a
series of squash! commits on this one.

tor-netdir
----------

Revise tor-netdir to accept optional identities.  This required some
caveats and workarounds about the cases where we have to deal with a
key type that the tor-netdir code does not currently recognize at
all.  If we start to add more identity types in the future, we may
well want more internal indices in this code.

tor-proto
---------

In order to make tor-proto support optional identities, there were
fewer changes than I thought.  Some "check" functions needed to start
looking at "all the ids we want" rather than at "the two known IDs";
they also needed to accommodate that case where we don't have an ID
that we demand.

This change will also help with bridges, since we want to be able to
connect to a bridge without knowing all of its IDs up front.

The protocol currently _requires_ the two current ID types in some
places. To deal with that, I added a new `MissingId` error.

I also removed a couple of unconditional identity accessors for
chanmgr; code should use `target().identity(...)` instead.

tor-chanmgr
-----------

This is an incomplete conversion: it does not at all handle channel
targets without Ed25519 identities yet.  It still uses those
identities to index its internal map from identity to channel; but
it gives a new `MissingId` error type if it's given a channel target
that doesn't have one.

We'll want to revise the map type again down the road when we
implement bridges, but I'd rather not step on the channel-padding
work in progress right now.

tor-guardmgr
------------

This change is mostly a matter of constructing owned identity types
more sensibly, rather than unwrapping them directly.

There are some places marked with TODOs where we still depend on
particular identity types, because of how the directory protocol
works.  This will need revisiting when we add bridge support here.

tor-circmgr
-----------

These changes are just relatively simple API changes in the tests.
</content>
</entry>
<entry>
<title>Now that versions have bumped, remove semver.md files.</title>
<updated>2022-08-01T14:07:12Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-08-01T14:07:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b16c042004e09d34ba134c1bf6a4da38a13e2826'/>
<id>urn:sha1:b16c042004e09d34ba134c1bf6a4da38a13e2826</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: Stop using write_infallible in handshake code.</title>
<updated>2022-07-11T15:18:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-11T15:04:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fbb6484025ac024642afbeef6734d88e35210673'/>
<id>urn:sha1:fbb6484025ac024642afbeef6734d88e35210673</id>
<content type='text'>
This change was a bit annoying, since most of this code _can't_ fail,
and so the only reasonable response is to wrap the input in an
internal error... except for one case where we're actually encoding
a caller-provided message, so we _do_ want to wrap the EncodeError
from tor_bytes.
</content>
</entry>
<entry>
<title>Remove semver.md files now that 0.5.0 is out</title>
<updated>2022-06-24T17:31:38Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-24T17:31:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1dda69af2b102b72c149503b49f7e598a8f8af5e'/>
<id>urn:sha1:1dda69af2b102b72c149503b49f7e598a8f8af5e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: err: Provide ChannelClosed as a separate unit error</title>
<updated>2022-06-21T18:19:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-06-16T17:16:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=13ca24ba3ae5a17744355b26a1706bd5aaa07891'/>
<id>urn:sha1:13ca24ba3ae5a17744355b26a1706bd5aaa07891</id>
<content type='text'>
</content>
</entry>
</feed>
