| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
arti-client: add accessors for `Blockage`
Closes #800
See merge request tpo/core/arti!1088
|
| |/ / /
| | |
| | |
| | | |
Fixes #800.
|
| |\ \ \
| | | |
| | | |
| | | |
| | | | |
Make the HS encoder randomness source injectable.
See merge request tpo/core/arti!1084
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We can use a deterministic rng to generate predictable keypairs instead.
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| |/ / /
| | |
| | |
| | |
| | |
| | |
| | | |
This makes it possible to plug in a deterministic randomness source for
testing.
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| |\ \ \
| |/ /
|/| |
| | |
| | | |
tor-netdir: Try to abolish unqualified uses of idx
See merge request tpo/core/arti!1083
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There are too many things called "index" here. `idx` could be read to
mean the table index `RouterStatusIdx`, the hsdir hash `HsDirIndex`,
or an entry in some other one of these tables.
Here's, it's just the sequence number of the index in the test netdir.
Use `pos` for that. (`seq` would have been another possibility.)
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The hidden services directory hashring is a ring of hsdir relays,
sorted by a hash that the spec calls the "index". That's `HsDirIndex`.
This was a bad idea because the word "index" is seriously overused,
but in Arti we must use the same terminology.
At least, qualify it everywhere. Now one of these hsdir sort position
hashes is always, in our code, an `hsdir_index`.
I think this is necessary even inside modules called `hsdir_*`,
because those can deal with other kind of "index" too.
|
| | | |
| | |
| | |
| | |
| | | |
This was removed in c3e74973b4201f71275d8cf4c0c954cfb8d0eba5
netdir: Use an even smaller rep for list of microdescs
|
| |/ /
| |
| |
| |
| |
| |
| |
| |
| | |
This is an `IndexVec` key type. Some places used `idx`, some `rsi`,
some `rs_idx`.
Use `rsidx` for it everywhere, including in locals, function names,
and fields. `rsidx` is a compromise. `rsi` might be a bit opaque,
but we want a one-"word" name since it appears inside other names.
|
| |\ \
| |/
|/|
| |
| | |
Use the type system to enforce use of blinded keys.
See merge request tpo/core/arti!1081
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hidden services use blinded singing keys derived from the identity key
to sign descriptor signing keys.
Before this patch, the hidden descriptor builder represented its blinded
signing keys (`blinded_id`) as plain `ed25519::Keypair`s. This was not
ideal, as there was nothing preventing the caller from accidentally
initializing `blinded_id` with an unblinded keypair.
This introduces a new `HsBlindKeypair` type to represent blinded
keypairs.
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| |\
| |
| |
| |
| | |
Fix typo
See merge request tpo/core/arti!1080
|
| | | |
|
| |\ \
| |/
|/|
| |
| |
| |
| | |
Example code for BridgeConfigBuilder
Closes #791
See merge request tpo/core/arti!1074
|
| | |
| |
| |
| | |
Closes #791
|
| |/
|
|
|
|
|
| |
Without this there's no convenient way to add a transport without
messing with serde/toml.
Found while working on #791
|
| |\
| |
| |
| |
| | |
Add builder for encoding hidden service descriptors.
See merge request tpo/core/arti!1070
|
| | |
| |
| |
| |
| |
| |
| |
| | |
The consensus seems to be the builders don't add much value, see [this comment].
[this comment]: https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1070#note_2889488
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| | |
| |
| |
| | |
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| | |
| |
| |
| |
| |
| |
| |
| | |
`NetdocText` is a wrapper around a `String` and a type marker. The type
annotation proved of limited use, and made the netdoc builder API
somewhat awkward to use.
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| | |
| |
| |
| | |
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Unlike `hsdesc::IntroPointDesc`, `hsdesc::build::IntroPointDesc`
represents link specifiers as `LinkSpec`s rather than
`UnparsedLinkSpec`s.
Since this is a general-purpose representation of an introduction point
and not merely an intermediate representation for decoding/encoding, it
will probably need to be factored out of `tor-netdoc` at some point.
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This introduces the `NetdocBuilder` trait described in
`netdoc-builder.md` and a new `tor-netdoc::doc::hsdesc::build` module,
which exports the `HsDescBuilder`. Hidden services will use
`HsDescBuilder` to build and encode hidden service descriptors.
There are several TODOs in the code that I'm planning to address
separately.
Partially addresses #745.
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| | |
| |
| |
| |
| |
| |
| | |
These are used in multiple places (and will also be used by the HS
descriptor encoder later on), so let's make them named constants.
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| |/
|
|
|
|
|
| |
This makes some code a bit more concise, as it allows us to make
`Strings` into `ItemArgument`s without calling `.as_str()`.
Signed-off-by: Gabriela Moldovan <[email protected]>
|
| |\
| |
| |
| |
| | |
Start drafting a dev note about a JSON-based OO RPC design.
See merge request tpo/core/arti!1061
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/ |
|
| |\
| |
| |
| |
| | |
Update to shellexpand 3.1.0 so we can use dirs 5 everywhere
See merge request tpo/core/arti!1076
|
| |/
|
|
|
|
|
|
| |
Results of precisely
cargo update -p shellexpand
Incorporates changes I have made to shellexpand to allow use of
dirs 4 *or* dirs 5.
|
| |\
| |
| |
| |
| | |
Update required openssl version
See merge request tpo/core/arti!1077
|
| | |
| |
| |
| | |
cargo-audit is complaining about 0.10.45.
|
| |\ \
| |/
|/|
| |
| | |
Fix typos
See merge request tpo/core/arti!1075
|
| |/ |
|
| |\
| |
| |
| |
| |
| |
| | |
Do minimal $ and ~ handling even without expand-paths and fix build
Closes #790
See merge request tpo/core/arti!1069
|
| | | |
|
| | |
| |
| |
| | |
Fixes #790
|
| | |
| |
| |
| | |
So, this is not a semver addition.
|
| | | |
|
| | |
| |
| |
| | |
str can always be made into a PathBuf.
|