<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-hscrypto/src/time.rs, branch arti-v1.1.5</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.5</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.5'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-02-09T12:56:18Z</updated>
<entry>
<title>hs time handling: Make TimePeriod contain length as IntegerMinutes</title>
<updated>2023-02-09T12:56:18Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-02-08T17:35:51Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4626ccfcaaf71ee364e71447b2a548d5f3f504c4'/>
<id>urn:sha1:4626ccfcaaf71ee364e71447b2a548d5f3f504c4</id>
<content type='text'>
Locally, the only functional effect is that now we refuse to handle
non-whole-number-of-minutes lengths - but since the consensus
parameter can't represent those, there's no overall functional change.
</content>
</entry>
<entry>
<title>netdir: Implement ring-param constructors and time period accessors</title>
<updated>2023-01-28T17:43:08Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-24T15:46:56Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5236c5cf887af0bd321ca80fb6dba991289549d6'/>
<id>urn:sha1:5236c5cf887af0bd321ca80fb6dba991289549d6</id>
<content type='text'>
This logic is a bit tricky, so I've tried to document it and add
fairly good tests.  The silver lining is that the external API for
all of this logic will make it invisible and hidden.

There are some cases where I added functions that I think might
eventually get lowered into MdConsensus: But I don't want to lower
too much right now, since the convention for our netdoc accessors is
that they are fairly unsophisticated, and they show you the document
as it is.

Closes #686
</content>
</entry>
<entry>
<title>Allow clippy::unchecked_duration_subtraction in tests</title>
<updated>2023-01-27T13:28:02Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-27T13:01:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a6dd92843edf2bd4c58de62a0d562921e4191ada'/>
<id>urn:sha1:a6dd92843edf2bd4c58de62a0d562921e4191ada</id>
<content type='text'>
This panics on error, and we're fine with a panic on misbehavior in
tests.
</content>
</entry>
<entry>
<title>hscrypto: add a note about maybe replacing epoch_offset with voting_interval</title>
<updated>2023-01-25T19:15:53Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-25T19:15:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b4c4a212977c81d1e297cba4bf954d81b9b89e36'/>
<id>urn:sha1:b4c4a212977c81d1e297cba4bf954d81b9b89e36</id>
<content type='text'>
</content>
</entry>
<entry>
<title>hscrypto: Note that maybe Duration is the wrong type to use.</title>
<updated>2023-01-25T18:59:50Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-25T18:59:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=360e84afab169aa575f1e46a022048d81682af03'/>
<id>urn:sha1:360e84afab169aa575f1e46a022048d81682af03</id>
<content type='text'>
</content>
</entry>
<entry>
<title>hscrypto: Note the need for a Result rather than an Option</title>
<updated>2023-01-25T18:57:57Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-25T18:57:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=904688467c87fdb97d587ee4c28eb2f110f31133'/>
<id>urn:sha1:904688467c87fdb97d587ee4c28eb2f110f31133</id>
<content type='text'>
</content>
</entry>
<entry>
<title>hscrypto: Revise TimePeriod to account for variable offset.</title>
<updated>2023-01-24T20:04:40Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-24T20:04:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fe6575ef98a65c19a08b62406d855625a4b1463d'/>
<id>urn:sha1:fe6575ef98a65c19a08b62406d855625a4b1463d</id>
<content type='text'>
Previously, the offset was set to 12 hours unconditionally (like the
spec says).  But based on a conversation on tor-dev, it seems that
the offset should actually be 12 times the voting interval.

I'm also opening an MR to change the spec.
</content>
</entry>
<entry>
<title>hscrypto: Add our standard clippy warnings</title>
<updated>2023-01-24T18:40:59Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-19T17:45:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=00aaf79620e74d5f5d581a5306c91ff65fbcbf2b'/>
<id>urn:sha1:00aaf79620e74d5f5d581a5306c91ff65fbcbf2b</id>
<content type='text'>
(I have squashed the fixes for these warnings into the earlier
commits in this branch, so it will look like I did everything right
the first time.)
</content>
</entry>
<entry>
<title>hscrypto: Implement key blinding.</title>
<updated>2023-01-24T18:40:59Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-19T17:28:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f192429442b80e33b1827e3901c09841992f337d'/>
<id>urn:sha1:f192429442b80e33b1827e3901c09841992f337d</id>
<content type='text'>
This implementation was made based on the specification, and then
validated against itself, and against C Tor.
</content>
</entry>
<entry>
<title>hscrypto: Add an implementation for TimePeriod</title>
<updated>2023-01-24T18:33:48Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-19T15:10:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3dfeb5b144b0016ff37cc0f7a86c617e8ea5d9ac'/>
<id>urn:sha1:3dfeb5b144b0016ff37cc0f7a86c617e8ea5d9ac</id>
<content type='text'>
This required some API tweaks, which is probably to be expected;
these time periods are a wonky kind of thing.
</content>
</entry>
</feed>
