<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-hscrypto/src, branch arti-v1.3.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.3.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.3.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-10-16T13:48:11Z</updated>
<entry>
<title>Rename "memquota" feature to "memquota-memcost" when it's just HasMemoryCost</title>
<updated>2024-10-16T13:48:11Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-10-16T13:43:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6ee75b3866e374250a760822b4aab49aef70e930'/>
<id>urn:sha1:6ee75b3866e374250a760822b4aab49aef70e930</id>
<content type='text'>
It's not documented anywhere ATM.  I will do that in a followup MR.
</content>
</entry>
<entry>
<title>hs-pow: Effort type improvements.</title>
<updated>2024-10-09T16:05:21Z</updated>
<author>
<name>Wesley Aptekar-Cassels</name>
<email>me@wesleyac.com</email>
</author>
<published>2024-10-01T18:19:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8cbc21152dc7bf57be1ecaf9fb7189427fcb908d'/>
<id>urn:sha1:8cbc21152dc7bf57be1ecaf9fb7189427fcb908d</id>
<content type='text'>
The Effort type didn't have any const constructor and we had to
disassemble it to do any arithmetic. This adds a const constructor and
int/float saturating arithmetic methods.

Co-authored-by: Micah Elizabeth Scott &lt;beth@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-hscrypto: Fixup broken doc links.</title>
<updated>2024-10-09T16:05:21Z</updated>
<author>
<name>Wesley Aptekar-Cassels</name>
<email>me@wesleyac.com</email>
</author>
<published>2024-10-01T18:09:24Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=af3bbc5704fc39dcecd5946211042446834670c7'/>
<id>urn:sha1:af3bbc5704fc39dcecd5946211042446834670c7</id>
<content type='text'>
Co-authored-by: Micah Elizabeth Scott &lt;beth@torproject.org&gt;
</content>
</entry>
<entry>
<title>hs-pow: Refactor to prefer stub types rather than cfg sprawl.</title>
<updated>2024-10-09T16:05:15Z</updated>
<author>
<name>Wesley Aptekar-Cassels</name>
<email>me@wesleyac.com</email>
</author>
<published>2024-10-01T18:06:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fd22ee0991dfa639059fd5e96e1e57916771aefb'/>
<id>urn:sha1:fd22ee0991dfa639059fd5e96e1e57916771aefb</id>
<content type='text'>
In this design, the thin multiplexing layer between PoW types is always
available when onion services are in use, but the specific pow schemes
(and their dependency libraries) are gated by crate features everywhere.
There are now no new cfg() gates.

When the pow-v1 scheme is disabled, we can parse `pow-params v1` lines
into an empty type (so clients know a PoW scheme exists that might be
supported if they were configured differently). We currently don't save
the contents of unknown hsdesc items.

On the relaycell side, the hs ext module already sets a strong precedent
for keeping unrecognized data as a byte vec, and it doesn't provide a
good way to signal soft parse errors like unrecognized optional
extensions. There, the `v1` type is completely optional, and services
lacking a pow scheme suggested by a client would see one of these
'unrecognized' blobs. This isn't necessarily helpful but it fits the
rest of the design.

Co-authored-by: Micah Elizabeth Scott &lt;beth@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-hspow: Big refactor, dissolve this crate</title>
<updated>2024-10-09T16:04:35Z</updated>
<author>
<name>Wesley Aptekar-Cassels</name>
<email>me@wesleyac.com</email>
</author>
<published>2024-09-30T18:50:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5d878d3cc068572d3c14e478051ecc2361ef26b4'/>
<id>urn:sha1:5d878d3cc068572d3c14e478051ecc2361ef26b4</id>
<content type='text'>
My previous strategy here was to try and centralize hspow in one crate,
writing it like a self-contained feature. That introduced friction in
the data types, prompting the use of simplistic types at the netdoc/cell
layers and full-featured types in the optional modules.

This changes tactics, dissolving the low-level parts of tor-hspow into
tor-hscrypto and the high-level parts into hsclient/hsservice. Full
featured types are used everywhere now, but the tradeoff is that
compile-time configurability is a lot more pervasive. Anything that
knows about PoW types at all needs to be fully configured out. I took
this opportunity to try a more complete set of crate features, allowing
users to configure individual PoW schemes.

Co-authored-by: Micah Elizabeth Scott &lt;beth@torproject.org&gt;
</content>
</entry>
<entry>
<title>tor-hscrypto: Use the new "restricted discovery" terminology.</title>
<updated>2024-10-03T11:42:29Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-10-03T11:39:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0f7f78634399c79e3df0725d6fa0e7a8cb68b594'/>
<id>urn:sha1:0f7f78634399c79e3df0725d6fa0e7a8cb68b594</id>
<content type='text'>
Part of #1476
</content>
</entry>
<entry>
<title>Some HasMemoryCost impls in tor-hscrypto</title>
<updated>2024-10-02T18:11:26Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-09-26T20:22:24Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a9a560340323a977dd12f297b9d0fe2f49eacf36'/>
<id>urn:sha1:a9a560340323a977dd12f297b9d0fe2f49eacf36</id>
<content type='text'>
</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>tor-hscrypto: Implement Eq for HsClientDescEncKey.</title>
<updated>2024-08-05T16:41:15Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-07-08T15:27:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e818088b7b111d566ce447809142ef7b24ec0191'/>
<id>urn:sha1:e818088b7b111d566ce447809142ef7b24ec0191</id>
<content type='text'>
Needed because such keys will be stored in the `OnionServiceConfig`.
</content>
</entry>
<entry>
<title>tor-hscrypto: Use collect_tuple to avoid unnecessary Vec allocation.</title>
<updated>2024-07-08T17:25:59Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-07-08T16:23:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=437eba59d26b19a6587c7c69b3138e1ebb5bde6f'/>
<id>urn:sha1:437eba59d26b19a6587c7c69b3138e1ebb5bde6f</id>
<content type='text'>
</content>
</entry>
</feed>
