Jędrzej Stuczyński
01c052e9a4
use legacy crypto for constructing SURB headers ( #5579 )
2025-03-06 20:13:16 +00:00
Jon Häggblad
430c33eb04
Set DEFAULT_MAXIMUM_REPLY_SURB_REQUEST_SIZE to 50
2025-03-06 18:03:08 +01:00
Jędrzej Stuczyński
be92ccf0da
bugfix: make sure to correctly decode response content when putting it into error message ( #5571 )
2025-03-06 11:24:16 +00:00
Jędrzej Stuczyński
35bf49c48c
chore: additional logs when attempting to load ecash keys ( #5567 )
2025-03-06 11:24:03 +00:00
Jędrzej Stuczyński
698883c03f
feature: v2 authentication request ( #5537 ) ( #5563 )
...
* introduced v2 authentication request between clients and gateways
* client to send v2 auth when possible
* added persistence to last used authentication timestamp
* added clients identity to signed plaintext
2025-03-06 09:18:39 +00:00
Jon Häggblad
8ddef08c72
Tweak surb management to be more conservative ( #5570 )
...
To reduce the risk of the IPR DoS the client:
- Lower the timeout until the IPR will disconnect a client
- Reduce fewer surbs at a time. Large surb requests increases the
latency until all fragments in the response have been delivered. The
efficiency gains of having large surb requests dimishes quickly for
large sizes as well
2025-03-06 10:09:15 +01:00
Jędrzej Stuczyński
eacaf84430
add full response body to error message upon decoding failure ( #5566 )
2025-03-05 16:43:56 +00:00
Jon Häggblad
c284b1e8b1
Create authenticator v5 request/response types ( #5561 )
...
* Create authenticator v5 request/response types
* Support v5 in the authenticator
* Fix tests
* Bump nym-node version
2025-03-05 15:41:44 +01:00
Jon Häggblad
9be9c04f52
Add SURBs soft threshold ( #5535 )
...
* Add surbs soft threshold
* wip
* Proactively request more SURBs than needed
* fmt
* cleanup
* wip logging
* wip
* debugging
* wip
* Tidy
* tidy
* Set threshold buffer default for IPR
* rustfmt
* wasm fixes
* debug
* Tweak debug message
* Set default min buffer to 0
* Tweak backlog message
* Restore debug message
* tweak
* tweak
* wasm
2025-03-03 14:06:20 +01:00
Jędrzej Stuczyński
4f7124e661
Feature/chain status api ( #5539 )
...
* nym-api endpoint to return latest block information
* attached chain health to health query
* fixed serde casing
* one of the most nastiest work arounds in test code
2025-03-03 10:47:40 +00:00
Jon Häggblad
128f69a5d6
Simplify IPR v8 ( #5532 )
...
* Purge stuff from v8
* Adapt to v8 changes
* Use protocol in ipr header
* Remove commented out code
* Remove unused error
2025-02-28 13:04:53 +01:00
Jack Wampler
f13ce6bf2d
HickoryDnsResolver use a shared instance by default to limit fd use ( #5523 )
2025-02-27 09:05:10 -07:00
Jon Häggblad
856dbfe1ac
IPR request types v8 ( #5498 )
...
* IPR v8 request/response types
* Remove signature for when we use sender tags
* Remove unused
* Address some review comments
* Update license to GPL-3.0 for IPR
Since the IPR can run as a binary, make sure it's license is GPL-3.0
* update cargo deny
* Add back support for v6
* Tidy responses
* Clippy
* Fix compilation
* Conversions
* Conversions
* Split response conversion
* request split
* Complete conversion switch
* Remove commented out code
* rustfmt
* Remove unused conversions
* Remove unused TryFrom
* use from
2025-02-27 15:21:55 +01:00
Jędrzej Stuczyński
65175fee09
merge #5512 again after reverting due to incorrect rebase ( #5520 )
...
* setup workspace global lints to prevent needless panics
* removed sources of panic in nym-crypto, nym-node and nym-api
* adjusted test code
2025-02-26 10:52:09 +00:00
Jędrzej Stuczyński
69b2448500
chore: removed all old coconut code ( #5500 )
2025-02-26 10:02:55 +00:00
Jędrzej Stuczyński
8ba5322997
bugfix: bound check when recovering a reply SURB ( #5502 )
2025-02-26 09:48:21 +00:00
Jędrzej Stuczyński
80b395cd8e
feat: use ct_eq for checking bearer token ( #5501 ) ( #5519 )
2025-02-26 09:48:05 +00:00
Jędrzej Stuczyński
8f5457e698
feature: allow nym-nodes to understand future version of sphinx packets ( #5496 ) ( #5518 )
...
* use updated sphinx crate
* updated outfox usage of keygen in tests
* use x25519 in outfox
* remove redundant constructor
* adjusted key convertion traits
2025-02-26 09:47:57 +00:00
Jędrzej Stuczyński
26f97d3c34
dont query for ecash apis unless necessary ( #5508 )
2025-02-24 10:59:06 +00:00
Jack Wampler
50b044a100
Support static routes for HTTP requests ( #5487 )
...
allow static dns override
2025-02-18 11:53:32 -07:00
Jack Wampler
be44811a65
centralize API request interface and add preffered compression in responses ( #5450 )
2025-02-18 08:58:35 -07:00
Jon Häggblad
eeaca9fc10
Run cargo autoinherit ( #5460 )
...
* cargo autoinherit
* sort
2025-02-17 15:05:27 +00:00
Jon Häggblad
35be8de9f1
Update task fork names to be consistent
2025-02-17 14:37:34 +01:00
Jon Häggblad
2b14a9e6f8
Fix unexpected drop:
2025-02-17 14:37:34 +01:00
Jon Häggblad
e9269da897
Fix using is_shutdown_poll
2025-02-17 14:37:34 +01:00
Jon Häggblad
7bceeadf16
Include MessageHandler
2025-02-17 14:37:34 +01:00
Jon Häggblad
e72ce8fa92
Fix bug with ack control task client
2025-02-17 14:37:34 +01:00
Jon Häggblad
c6d38d3c4f
Also include topology refresher and mix traffic controller
2025-02-17 14:37:34 +01:00
Jon Häggblad
e8e2bf107f
Wrap more send errors in shutdown check
2025-02-17 14:37:34 +01:00
Jon Häggblad
efe4e5c1c1
Move TaskClient to Self in few tasks
2025-02-17 14:37:34 +01:00
Jon Häggblad
2230609a72
Use a TaskClient in client stats sender
2025-02-17 14:37:34 +01:00
Jon Häggblad
6d80c37b21
Tweak logging
2025-02-17 14:37:34 +01:00
Jon Häggblad
cb8b4c56af
Remove a bunch of unwraps from client-core
2025-02-17 14:37:34 +01:00
Jon Häggblad
4d486abfef
Remove all recv_with_delay and add shutdown condition to loops in client-core
...
Inside client-core we want to prepare the ground for moving a behaviour
close to what we have in the vpn client.
Remove all the recv_with_delay since we want to just stop
Add shutdown condition to all select loops to guard against the shutdown
listener being polled inside the select blocks.
2025-02-17 14:37:34 +01:00
Jędrzej Stuczyński
b694845e4c
added missing import to doctest ( #5480 )
2025-02-17 13:27:47 +00:00
Drazen Urch
134883522d
Seedable clients ( #5440 )
...
* Seedable clients
* Finalize seedable PR
* Address PR comments
* More generic DerivationMaterials init
* Fix xoring the wrong index
* Tests
2025-02-17 00:00:17 +01:00
Jon Häggblad
dcc48db301
Fix clippy::precedence ( #5457 )
...
* Fix clippy::precedence
* Fix clippy::useless_conversion
2025-02-13 11:05:39 +00:00
dynco-nym
b7e3687757
Dz nym node stats ( #5418 )
...
* Remove blacklisted, inactive, reserve fields
* Remove gw.blacklisted
* Remove blacklisted and bonded count
* DB operations
* Improve logging
* Remove unused functions
* get_nym_nodes for scraping WIP
* Separate nym_nodes from mixnode stats
- fixes FOREIGN_KEY_CONSTRAINT error when storing
stats for nym_nodes which aren't in mixnodes table
* Daily aggregation works
* mixnodes/stats exposes correct info
* Undo unnecessary tidbits
* Replace obsolete stats
* Add total_stake
* Bump cargo.toml version
* Rename MixingNodeKind for better clarity
2025-02-11 12:07:15 +01:00
benedetta davico
988eca857f
Merge pull request #5431 from nymtech/drazen/forget-cli-client
...
Push down forget me to client configs
2025-02-06 15:25:04 +01:00
durch
a8e268f84a
Push down forget me to client configs
2025-02-06 13:15:58 +01:00
Bogdan-Ștefan Neacşu
bdc0b875a4
Merge remote-tracking branch 'origin/develop' into release/2025.2-hu
2025-02-06 13:16:51 +02:00
Bogdan-Ștefan Neacşu
21e3c1538d
Fix statistics shutdown ( #5426 )
2025-02-05 16:06:46 +02:00
Jon Häggblad
3a21cfa1ab
Make wait_for_graceful_shutdown to be pub ( #5424 )
2025-02-05 08:58:25 +01:00
Jack Wampler
1d2e6d916c
Use secure DNS for websocket connection establishment ( #5386 )
...
implementation of secure dns for websocket connection establishment. depends on #5355
2025-02-04 11:20:39 -07:00
Jędrzej Stuczyński
70e2e32385
Feature/remove double spending bloomfilter ( #5417 )
...
* removed all uses of the bloomfilter inside nym-api
* changed http status code on bf queries
2025-02-03 16:11:13 +00:00
Jon Häggblad
68a192daa3
Upgrade to thiserror 2.0 ( #5414 )
...
* Upgrade to thiserror 2.0
* Remove line macros in vesting contract error type
* Name positional arguments in GatewayRequestsError
* Named positional argument
* Revert "Remove line macros in vesting contract error type"
This reverts commit 49f937da3f .
* Use positional arguments for line
2025-02-03 10:50:11 +01:00
Jon Häggblad
6f00023d09
Send shutdown instead of panic when reaching max fail ( #5398 )
...
* Send shutdown instead of panic when reaching max fail
* Stop quicker on failure
* Update comment
2025-01-31 10:39:37 +01:00
jmwample
882003c08c
fmt
2025-01-29 14:58:04 -07:00
jmwample
b71a491872
relocate a validator api function
2025-01-29 14:55:16 -07:00
Jędrzej Stuczyński
6d90ffdd2c
reduce log severity for checking topology validity ( #5395 )
2025-01-28 09:29:51 +00:00