CakeWallet/lib/utils
cyan 5082dc20f3
CW-519 Enable built-in Tor (#1950)
* tor wip

* Enable tor on iOS

* Prevent app lag when node is exceptionally slow (usually over tor)

* fix: logic in daemonBlockchainHeight refresh
fix: storing tor state

* Pin ledger_flutter_plus dependency to fix builds

* bump arti version

* wip

* add single httpclient

* route everything I was able to catch trough the built-in tor node

* Enable proxy for http.Client [run tests]

* add tor proxy support to cw_evm, cw_tron and cw_polygon [run tests]

* remove log pollution, cleanup [skip slack]

* fix tests not working in latest main [skip slack] [run tests]

* remove cw_wownero import

* fix build issues

* migrate all remaining calls to use ProxyWrapper
add a CI action to enforce using ProxyWrapper instead of http/http.dart to prevent leaks

* fix tor background sync (will work on test builds after #2142 is merged and this PR is rebased on top)

* wip [skip ci]

* relicense to GPLv3 add socks5 license, build fixes

* use ProxyWrapper instead of http in robinhood

* Revert "relicense to GPLv3"

* feat(cw_bitcoin): support socks proxy and CakeTor

* fix(tor): migrate OCP and EVM over to ProxyWrapper()

* chore: cleanup
fix: show tor loading screen when app is starting

* fix: tor switch properly dismisses fullscreen loading dialog
fix: connectToNode after tor startup on app start

* fix(tor): status check for xmr/wow/zano

* fix(tor): onramper request fix

* fix(api): ServicesResponse is now being cached and doesn't fetch data everytime DashboardViewModel is being rebuilt
fix(tor): do not fallback to clearnet when tor failed.
fix(tor): do not leak connections during app startup
chore: refactor bootstrap() function to be separated into bootstrapOffline and bootstrapOnline
fix(cw_bitcoin): migrate payjoin to use ProxyWrapper

* [skip ci] remove print

* address comments from review

* fix: derusting tor implementation

Instead of rust-based Arti I've moved back to the
OG C++ tor implementation.
This fixed all issues we had with Tor.
- onion services now work
- all requests are going through without random errors
- we don't have to navigate a maze of multiple forks of multiple packages
- fully working `torrc` config file (probably will be needed for Tari).
- logging for Tor client
- and so on.

feat: network logging tab
feat: use built-in proxy on Tails - this should resolve all issues for Tails users (needs testing though)

* fix conflicts with main
bump https to fix build issue
relax store() call

* fix(cw_wownero): tor connection
fix(tor): connection issues

* fix(cw_evm): add missing chainId
fix(cw_core): solana rpc fix

* feat: mark tor as experimental
fix: drop anonpay onion authority
fix: drop fiatapi onion authority
fix: drop trocador onion authority
fix: disable networkimage when tor is enabled
fix: handle cakepay errors gracefully

* fix re-formatting [skip ci]

* changes from review

* Delete android/.kotlin/sessions/kotlin-compiler-2468481326039681181.salive

* fix missing imports

* Update pubspec_base.yaml

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2025-06-20 22:56:18 +03:00
..
address_formatter.dart Address-formatting-enhancements-MWEB (#2189) 2025-04-11 19:51:30 +02:00
brightness_util.dart Generic fixes (#1716) 2024-10-04 23:00:36 +03:00
clipboard_util.dart CW-423 Use SensitiveClipboard for sensitive Stings (#1013) 2023-08-01 15:52:03 +03:00
date_formatter.dart Automated Integration Tests Flows (#1686) 2024-11-07 16:46:08 +02:00
date_picker.dart Removed force white background color for CupertinoDatePicker. (#605) 2022-11-07 13:36:57 -05:00
debounce.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
device_info.dart Dashboard desktop view (#737) 2023-04-14 06:39:08 +02:00
distribution_info.dart CW 781 replace all print statements with printV (#1733) 2024-12-09 20:23:59 +02:00
exception_handler.dart CW-1090-ledger-issues (#2314) 2025-06-19 20:00:16 +03:00
feature_flag.dart CW-519 Enable built-in Tor (#1950) 2025-06-20 22:56:18 +03:00
image_utill.dart CW-519 Enable built-in Tor (#1950) 2025-06-20 22:56:18 +03:00
item_cell.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
language_list.dart Added French localization (#290) 2022-03-09 15:06:34 +03:00
list_item.dart TMP 4 2020-06-20 10:10:00 +03:00
list_section.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
mobx.dart Flutter upgrade 2022-10-12 13:09:57 -04:00
package_info.dart CW-676 Add Linux scripts to build monero_c for linux platform (#1527) 2024-08-13 01:18:14 +03:00
payment_request.dart implement-payjoin (#1949) 2025-05-12 20:33:14 +03:00
permission_handler.dart Generic fixes (#1173) 2023-11-18 00:15:15 +02:00
request_review_handler.dart CW-33 Add app review after successful transactions and exchange (#864) 2023-04-17 20:06:58 +02:00
responsive_layout_util.dart fix: Desktop resize bug (#1461) 2024-05-23 18:21:51 +03:00
route_aware.dart CW-636-1-Unfocus text fields when push to next one (#1460) 2024-05-31 17:57:40 +03:00
share_util.dart V4.6.1 report fixes (#859) 2023-03-31 21:14:22 +02:00
show_bar.dart New themes (#2239) 2025-05-25 23:11:45 +03:00
show_pop_up.dart V4.6.4 fixes (#904) 2023-04-27 17:06:09 +02:00
tor.dart CW-519 Enable built-in Tor (#1950) 2025-06-20 22:56:18 +03:00
totp_utils.dart Cw-263-TOTP-2FA-In-Security-Settings (#892) 2023-05-17 17:43:23 +03:00
version_comparator.dart CW-59-New-update-highlight-popup (#863) 2023-04-21 17:21:31 +02:00