<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-keymgr/src/mgr.rs, branch arti-v1.2.8</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.8'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-09-23T13:17:49Z</updated>
<entry>
<title>tor-keymgr: Rename the primary keystore for clarity.</title>
<updated>2024-09-23T13:17:49Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-20T10:20:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=80095da1aa47978cdba26c2b3d254a99c075cf53'/>
<id>urn:sha1:80095da1aa47978cdba26c2b3d254a99c075cf53</id>
<content type='text'>
Previously, arti's primary keystore was referred to as its "default"
keystore. However, "default" is inaccurate here: there is no way to
meaningfully override this "default" (the "default" store acts as the
main keystore). Throughout the codebase, we query all keystores for keys
(including the secondary ones), but only ever write to the
default/primary keystore. This is OK for now, because it enables us to
have one mutable keystore, and multiple secondary, read-only stores.
</content>
</entry>
<entry>
<title>tor-keymgr: add an overwrite flag to KeyMgr::insert()</title>
<updated>2024-09-10T02:56:14Z</updated>
<author>
<name>Morgan</name>
<email>morgan@torproject.org</email>
</author>
<published>2024-09-08T21:28:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=09483af6a80b1a2100f67cf8051ff6dbf79e84d9'/>
<id>urn:sha1:09483af6a80b1a2100f67cf8051ff6dbf79e84d9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rename get_keypair_specifier() to keypair_specifier()</title>
<updated>2024-09-09T16:12:27Z</updated>
<author>
<name>Adam Joseph F0B74D717CDE8412A3E0D4D5F29AC8080DA8E1E0</name>
<email>3587-amjoseph@gitlab.torproject.org</email>
</author>
<published>2024-09-09T16:12:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6b6e56bb65f5395d4afe6922219f9b2dc6e110a1'/>
<id>urn:sha1:6b6e56bb65f5395d4afe6922219f9b2dc6e110a1</id>
<content type='text'>
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/2393#note_3073480
</content>
</entry>
<entry>
<title>tor_keymgr: teach the KeyStore how to satisfy public key requests using a keypair</title>
<updated>2024-09-09T16:08:11Z</updated>
<author>
<name>Adam Joseph F0B74D717CDE8412A3E0D4D5F29AC8080DA8E1E0</name>
<email>3587-amjoseph@gitlab.torproject.org</email>
</author>
<published>2024-09-07T07:24:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4a5339948755e0fa825061524f9a73260b3e40b8'/>
<id>urn:sha1:4a5339948755e0fa825061524f9a73260b3e40b8</id>
<content type='text'>
Now that:

- KeySpecifier::get_keypair_specifier() can be used to convert the
  KeySpecifier for a public key into the KeySpecifier for its secret key

- ToEncodableKey&lt;Key=PublicKey&gt; has a "type level pointer" to
  ToEncodableKey&lt;Key=KeyPair&gt;

We can use these two features together to automatically satisfy any request to
get a public key using the corresponding secret key (if available).
</content>
</entry>
<entry>
<title>tor_key_forge::traits::ToEncodableKey: add KeyPair associated type</title>
<updated>2024-09-09T16:08:10Z</updated>
<author>
<name>Adam Joseph F0B74D717CDE8412A3E0D4D5F29AC8080DA8E1E0</name>
<email>3587-amjoseph@gitlab.torproject.org</email>
</author>
<published>2024-09-07T07:24:19Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=97ac26cf8c5fc4d33da64f86531488e58191f989'/>
<id>urn:sha1:97ac26cf8c5fc4d33da64f86531488e58191f989</id>
<content type='text'>
This comment adds a second associated type `KeyPair` to ToEncodableKey.  For a
`ToEncodableKey` which represents a (secret) KeyPair, this type is Self.  For
a `ToEncodableKey` which represents a public key, this is the `ToEncodableKey`
whose `Key` is the pair of which this is the public part.

This is essentially a "type level pointer" from the ToEncodableKey for a
public key to the ToEncodableKey for its secret key.
</content>
</entry>
<entry>
<title>tor_keymgr: add get_keypair_specifier() to KeySpecifier, and derive it</title>
<updated>2024-09-09T16:08:10Z</updated>
<author>
<name>Adam Joseph F0B74D717CDE8412A3E0D4D5F29AC8080DA8E1E0</name>
<email>3587-amjoseph@gitlab.torproject.org</email>
</author>
<published>2024-09-07T07:24:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dfec9e8e9106b470fe26b6a8307f098ec6d7ba99'/>
<id>urn:sha1:dfec9e8e9106b470fe26b6a8307f098ec6d7ba99</id>
<content type='text'>
This commit adds a new method `get_keypair_specifier()` to `KeySpecifier`.
This method is used to indicate when one KeySpecifier (e.g. `KP_hs_id`) is the
public part of another keypair (e.g. `KS_hs_id`).  It will return the
containing keypair in this case, and `None` otherwise.
</content>
</entry>
<entry>
<title>tor_hsservice: add `impl From&lt;&amp;FooPublicKeySpecifier&gt; for FooKeypairSpecifier` instances</title>
<updated>2024-09-09T16:08:10Z</updated>
<author>
<name>Adam Joseph F0B74D717CDE8412A3E0D4D5F29AC8080DA8E1E0</name>
<email>3587-amjoseph@gitlab.torproject.org</email>
</author>
<published>2024-09-07T07:24:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2c60baee2ca6aa6c76f19d150c77d119f0d6ece4'/>
<id>urn:sha1:2c60baee2ca6aa6c76f19d150c77d119f0d6ece4</id>
<content type='text'>
This adds the following trivial `From` instances:

- tor_hsservice: impl From&lt;&amp;HsIdPublicKeySpecifier&gt; for HsIdKeypairSpecifier
- tor_hsservice: impl From&lt;&amp;BlindIdPublicKeySpecifier&gt; for BlindIdKeypairSpecifier
- tor_hscrypto::pk: impl From&lt;HsBlindIdKeypair&gt; for HsBlindIdKey
- tor_llcrypto::pk::ed25519: impl From&lt;ExpandedKeypair&gt; for PublicKey
- tor_keymgr::mgr: impl From&lt;TestKey&gt; for TestPublicKey
- tor::hscrypto::pk: impl From&lt;HsIdKeypair&gt; for HsIdKey
</content>
</entry>
<entry>
<title>Rename tor-keys crate to tor-key-forge</title>
<updated>2024-09-04T18:26:37Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2024-09-04T18:24:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6a28902e3d0c34375e64cbc067eb9cf2e4a55142'/>
<id>urn:sha1:6a28902e3d0c34375e64cbc067eb9cf2e4a55142</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-keymgr: Use tor-keys crate and remove dead code</title>
<updated>2024-09-04T18:25:55Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2024-08-22T17:41:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=803ede5806999264a8379daa96fcdf9177338981'/>
<id>urn:sha1:803ede5806999264a8379daa96fcdf9177338981</id>
<content type='text'>
Everything copied in the previous commits to tor-keys is now removed and
tor-keys crate is used accross the code.

Minor changes to tor-keys to accomodate this change.

Part of #1137

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-keys: Automatically implement keymgr trait</title>
<updated>2024-09-04T18:25:55Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2024-08-21T18:16:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f3492ff3f206e285d14e25b7368e396ff231d231'/>
<id>urn:sha1:f3492ff3f206e285d14e25b7368e396ff231d231</id>
<content type='text'>
The derive ed25519 keypair macro now implements the keymgr trait so the
key wrapper can now be used with a keystore without needing to specify
it in the tor-keymgr crate.

For this to work, a slight change to the KeygenRng trait was needed as
in to expect the CryptoRngCore trait which is what ed25519-dalek
requires.

And also, the removal of the Sealed trait since now it is accepted to
implement these traits outside tor-keymgr.

Fixes #1137

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
</feed>
