Tommy Verrall
734ff63f6d
Use explicit Vec<ApiUrl> handling in BaseClientBuilder
...
- Replace NymNetworkDetails with explicit API URL handling
- Fix deprecated from_network() usage and improve fallback logic
- Add URL validation and remove unused backwards compatibility
2025-10-31 09:02:11 +00:00
Tommy Verrall
910c24e7da
Actually commit the recommended changes
2025-10-31 09:02:11 +00:00
Tommy Verrall
c96b73172a
Fix broken tests in CI
2025-10-31 09:02:11 +00:00
Tommy Verrall
823c2c7262
Replace deprecated from_network() with new_with_fronted_urls()
2025-10-31 09:02:11 +00:00
Jędrzej Stuczyński
03d1b72a9e
feat: expose more explicit new_with_fronted_urls builder for http API client ( #6136 )
2025-10-31 09:02:10 +00:00
Jędrzej Stuczyński
066669440f
bugfix: update stored epoch share when changing ownership ( #6135 )
2025-10-31 09:01:27 +00:00
Jędrzej Stuczyński
9fb3443fd1
bugfix: update stored epoch share when changing announce address ( #6131 )
...
* bugfix: update stored epoch share when changing announce address
* chore: remove placeholder legacy mixnode bonding test [mixnet contract]
2025-10-31 09:01:27 +00:00
Tommy Verrall
cd89a590b5
Fix new_from_env() to populate nym_api_urls for domain fronting
2025-10-31 09:01:27 +00:00
Tommy Verrall
06cb8bd969
fix all clippy messages
2025-10-31 09:01:27 +00:00
Tommy Verrall
c72fef169c
Add more tests for retry logic
2025-10-31 09:01:27 +00:00
Tommy Verrall
3c27eb41b8
Fix confusing tracing logs
2025-10-31 09:01:27 +00:00
Tommy Verrall
2428374fe7
Fix retries - this is working
2025-10-31 09:01:27 +00:00
Tommy Verrall
5a491f0a7e
Add configuration-based domain fronting support
...
Changes:
- Add network_details field to BaseClientBuilder (optional, backwards compatible)
- Add with_network_details() method for opt-in domain fronting
- Update construct_nym_api_client() to use from_network() when network_details provided
- Enable network-defaults feature in nym-client-core Cargo.toml
- SDK passes network_details to BaseClientBuilder
2025-10-31 09:01:27 +00:00
Tommy Verrall
530f9ccb6f
Fix CI issues
2025-10-31 09:01:26 +00:00
Tommy Verrall
2228a81d43
Allow clippy::enum_variant_names for BuilderConfigError
2025-10-31 09:01:26 +00:00
Tommy Verrall
c8a1b53071
Improve error handling
...
Changes:
- Replace String error with BuilderConfigError enum in BuilderConfigBuilder
- Update tests to use pattern matching instead of string assertions
2025-10-31 09:01:26 +00:00
Tommy Verrall
b896aaaed1
- Add DEFAULT_NYM_API_RETRIES constant (replaces magic number 3)
...
- Run cargo fmt on all affected packages
- All clippy warnings resolved
2025-10-31 09:01:26 +00:00
Tommy Verrall
828ffc6710
not sure what happened but it's fixed
2025-10-31 09:01:26 +00:00
Andy Duplain
05cdb27029
VPN-4262: Update Url to return url and front fields.
...
The VPN client is using the `Url` type alot now and in order to avoid
double URL-parsing we would like the content of the `Url` type exposed.
2025-10-31 09:01:26 +00:00
Tommy Verrall
3f29d3eba5
Add accessor methods for Url internals
...
Add inner_url() and fronts() accessor methods to nym_http_api_client::Url
for VPN client integration
2025-10-31 09:01:22 +00:00
Tommy Verrall
aa2c41dc41
Merge resolution
2025-10-31 09:01:02 +00:00
Tommy Verrall
048de771ab
Remove tests for removed with_nym_api_client method
...
These tests were referencing with_nym_api_client() which was removed when
cleaning domain fronting code from this branch
2025-10-31 09:01:02 +00:00
Tommy Verrall
e1b06f02f3
Add optional builder pattern for BuilderConfig (non-breaking)
...
Addresses @jstuczyn's feedback about too many arguments by adding
BuilderConfigBuilder as an alternative to the existing new() method.
2025-10-31 09:01:02 +00:00
Tommy Verrall
b5b8b8f224
fix conversion type && make the retry count configurable
2025-10-31 09:01:02 +00:00
Tommy Verrall
2d7141dfb1
Revert node filtering changes per Andrew's feedback
...
Andrew clarified that get_basic_entry_assigned_nodes_v2() already filters by
supported_roles.entry
2025-10-31 09:01:02 +00:00
Tommy Verrall
a07522258f
Remove domain fronting code to keep gateway changes only
...
This branch now contains only gateway registration improvements:
- Multiple URL fallback support in gateways_for_init()
- Get all entry-capable nodes for registration
- Performance and code quality improvements
2025-10-31 09:00:17 +00:00
Tommy Verrall
547a441002
Address PR feedback: simplify code and reduce log noise
...
- Reverted all changes to topology_control/nym_api_provider.rs
- Changed info/warn logs to debug for custom client messages
- Removed unused _rng parameter from gateways_for_init()
- Simplified URL builder to always use new_with_urls()
2025-10-31 09:00:17 +00:00
Tommy Verrall
93208fb5e0
Fix clippy warnings: use arrays instead of vec! in tests
2025-10-31 09:00:17 +00:00
Bogdan-Ștefan Neacşu
c9b50dd979
Introduce event backchannel ( #6119 )
...
* Introduce even backchannel
* Rust fmt
* Rename Event to MixnetClientEvent
* Use unbounded_send for events
* Remove unused file
* Remove mut borrow
* Event hierarchy and mixnet client intermediary
* Export MixTrafficEvent in sdk
2025-10-31 09:00:15 +00:00
Jędrzej Stuczyński
74cdfd5d94
Merge pull request #6099 from nymtech/bugfix/incompatibility-fixes
...
Bugfix/incompatibility fixes
2025-10-31 08:59:40 +00:00
Jędrzej Stuczyński
953e813f0e
Bugfix/bloomfilters purge ( #6089 )
...
* remove all old bloomfilters upon starting binary
* remove old bloomfilter file upon purging secondary data
2025-10-31 08:59:38 +00:00
Tommy Verrall
29cf5058a6
feat: pass custom HTTP client through SDK stack for domain fronting
...
- Add with_nym_api_client() to BaseClientBuilder, MixnetClientBuilder, and RegistrationClientBuilderConfig
- Modify nym_api_provider to fetch all nodes then filter by supported_roles.entry (fixes metadata inconsistency)
- Update helpers.rs to build HTTP client with all nym_apis URLs and retries for fallback support
- Fix SDK to use entry_capable_nodes() instead of entry_gateways() for broader gateway selection
This enables domain fronting and URL rotation throughout the entire SDK stack, improving censorship resistance and connection reliability. All changes are backward compatible - custom client is optional.
2025-10-31 08:57:08 +00:00
Tommy Verrall
a2856552d8
enable URL rotation and retries for mixnet gateway init
2025-10-31 08:57:08 +00:00
Andrej Mihajlov
a33c603471
Update dirs to 6.0
2025-10-31 08:57:08 +00:00
Jędrzej Stuczyński
a9f9266992
bugfix: nym-credential-proxy query params parsing regression ( #6121 )
2025-10-31 08:57:08 +00:00
Tommy Verrall
cf34d0d24a
Skip ipv6 metadata endpoint request ( #6118 )
...
Co-authored-by: Tommy Verrall <tommy@nymtech.net >
2025-10-31 08:57:07 +00:00
Jędrzej Stuczyński
5fa7b0a709
bugfix: revert some dep updates introduced in #6043 ( #6120 )
2025-10-31 08:57:07 +00:00
Andrej Mihajlov
e232b4fd24
Revert "Propagate cancel token to mixnet client"
...
This reverts commit 50a259d454 .
2025-10-31 08:57:07 +00:00
Jędrzej Stuczyński
609f174e8d
chore: restore pending dkg contract state migration ( #6116 )
...
since it has not yet been run on mainnet
2025-10-31 08:57:07 +00:00
benedetta davico
a0f4627647
Update lib.go
2025-10-31 08:57:07 +00:00
Jędrzej Stuczyński
258f8f5f5d
bugfix: retrieve and update ticketbook in the same query ( #6101 )
...
* bugfix: retrieve and update ticketbook in the same query
* bump up NS version
* Update Cargo.toml
* remove SKIP LOCKED part of the query
---------
Co-authored-by: benedetta davico <46782255+benedettadavico@users.noreply.github.com >
2025-10-31 08:57:07 +00:00
mfahampshire
38220e05f1
DOCS Jarlsberg Release ( #6111 )
...
* First pass release notes
* build info
2025-10-31 08:57:07 +00:00
Andrej Mihajlov
6250ebe235
Propagate cancel token to mixnet client
2025-10-31 08:57:07 +00:00
mfahampshire
a55323c0e2
Patch for operators to open wg metadata port ( #6106 )
2025-10-31 08:57:07 +00:00
Jędrzej Stuczyński
baa8ac3610
bugfix: use custom topology provider for list of init gateways ( #6092 )
2025-10-31 08:57:07 +00:00
Jędrzej Stuczyński
933da11e8f
bugfix: include network name in the default gateway probe config path ( #6100 )
2025-10-31 08:57:07 +00:00
Jędrzej Stuczyński
0469036da4
feat: expose obtaining reference to Mnemonic from DirectSecp256k1HdWallet ( #6083 )
...
* feat: expose obtaining reference to Mnemonic from DirectSecp256k1HdWallet
* updated getters for stringified mnemonic
2025-10-31 08:57:07 +00:00
Georgio Nicolas
63f9a856fa
Another offering for Clippy
2025-10-31 08:57:07 +00:00
Georgio Nicolas
c068948c62
Offerings for clippy
2025-10-31 08:57:06 +00:00
Georgio Nicolas
0105f9fa5e
Precompute BSGS table
2025-10-31 08:57:06 +00:00