From f008403f1f03974d327b369a46783447c7d6e8ad Mon Sep 17 00:00:00 2001 From: Seth For Privacy <40500387+sethforprivacy@users.noreply.github.com> Date: Wed, 23 Sep 2026 06:53:25 -0400 Subject: [PATCH] Use Trocador's current onion endpoint for exchange API (#3645) Trocador rotated its onion service; the address in the provider was the old one and had been aliased to clearnet since CW-519. The onion serves the API paths over plain HTTP only, so build onion URLs with Uri.http. Co-authored-by: Claude Opus 5 --- lib/exchange/provider/trocador_exchange_provider.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/exchange/provider/trocador_exchange_provider.dart b/lib/exchange/provider/trocador_exchange_provider.dart index 8b027b323..0dddcc460 100644 --- a/lib/exchange/provider/trocador_exchange_provider.dart +++ b/lib/exchange/provider/trocador_exchange_provider.dart @@ -48,8 +48,7 @@ class TrocadorExchangeProvider extends ExchangeProvider { static final apiKey = isMoneroOnly ? secrets.trocadorMoneroApiKey : secrets.trocadorApiKey; static const clearNetAuthority = 'api.trocador.app'; - static const onionApiAuthority = clearNetAuthority; - // static const onionApiAuthority = 'trocadorfyhlu27aefre5u7zri66gudtzdyelymftvr4yjwcxhfaqsid.onion'; + static const onionApiAuthority = '65bsisadnxvw4kfz7h7a3jwcyenrhluuj3kd5toslfzxbk5q4m3wy6qd.onion'; static const markup = secrets.trocadorExchangeMarkup; static const newRatePath = '/new_rate'; static const createTradePath = '/new_trade'; @@ -539,7 +538,7 @@ class TrocadorExchangeProvider extends ExchangeProvider { } Future _getUri(String path, Map queryParams) async { - final uri = Uri.https(onionApiAuthority, path, queryParams); + final uri = Uri.http(onionApiAuthority, path, queryParams); if (useTorOnly) return uri;