| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Part of making these two files largely identical.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Move the implementation to the trait method which then becomes
completely identical in both files.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Part of making ns.rs and md.rs largely identical.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
Part of making these two files largely identical.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
In the species-specific files ns.rs and md.rs, use the unqualified
name; re-export it with the new macro.
We are working towards making these two files largely identical.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This will let us deduplicate a fair amount of code, and also will let
us support votes as well as ns and md consensuses.
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Our features are generally kebab-case, and this is the way it's
documented.
Retain the old name for compatibility.
|
| |/ / / / /
| | | | |
| | | | |
| | | | | |
Cut-and-paste error, I think.
|
| |\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | | |
More PoW miscellania
See merge request tpo/core/arti!3132
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
This also make this check a error rather than a warning.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This caps the PoW effort during sorting, rather than at intake.
This allows us to record efforts that are capped in our metrics
histogram while only recording metrics after the PoW solve has actually
been verified.
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Three is a concern that a DegradedReachable status could overwrite a
previous Broken status. A nicer solution could be to add a function to
StatusSender that only will change the status to a "more or equally
severe" status.
However, I am a little dubious about using the DegradedReachable status
for PoW in general, since it has a better documented meaning for IPTs
than it does for PoW.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
We do in fact need multiple locations to hold the sender.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | | |
Now that this is public, this is prudent.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
I'm not 100% on this being here, it seems like it might want to be a
option for all onion services, rather than per-service. However, this is
good enough for now.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This config option doesn't really apply to Prop 362 (which is what's
implemented in Arti), as far as I can tell.
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
I have thought about this and come to the conclusion (which is what I
suspected when I wrote it) that the current behaviour is correct.
The attack described is completely impractical (the space of nonces is
very large), and checking whether a nonce is a replay is cheaper than
verifying a PoW solve, so we want to do that first.
Splitting this into something like the following:
* Check replay log without updating
* Check that solve is valid
* Update replay log
Would require adding a somewhat dangerous API to the ReplayLog, and
requires doing more work per request for something that isn't even a
practical attack, AFAICT.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We restored the seeds, but doing so is counterproductive if we don't
also recreate the verifiers needed to check solves for those seeds.
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This does not currently allow this option to be changed at runtime,
although the code is structured so that allowing it to be changed at
runtime won't be too hard. This is tracked by #2082.
|
| | | | | |
| | | | |
| | | | |
| | | | | |
MockExecutor now supports the features needed for this test to work.
|
| | | | | | |
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This disentangles the ReplyLog from the IptManager.
This will allow us to make the InternalPowError type more public (in
order to use it in the OnionServiceStatus code) without also having to
make the CreateIptError type more public.
|
| |\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
New netdoc parser, with derive macro
See merge request tpo/core/arti!3135
|
| | | | | | | |
|
| | | | | | | |
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
We parse and verify some network documents from testdata2.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
This can parse and validate the signatures on a consensus.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This isn't used anywhere yet. We're going to demonstrate it, and test
the demo, in a moment.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
testresult is a new dependency for arti.git. (It's being added as a
test-dependenchy here.) It is has a very useful Result type for use
in test cases.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This is a fine API. The representation may change, but that wouldn't
be breaking.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
We won't want them ever to be anything other than a wrapper around
`RsaIdentity`, so we can make them transparent.
Derive various useful traits, including Deref.
Expose them publicly, since there's no reason not to do so. (The new
parser will want to reuse them. It's in-crate, but out-of-crate users
may want to use these too for other netdoc types.)
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Revert "tor-llcrypto: implement Hash for RsaPublicKey"
This reverts commit 5df5ed8c4be5376a7288f1332541d9bff29a08f5.
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | | |
The new parser is going to reuse this.
|
| | | | | | | |
|