feat: proxy (Tor/SOCKS5) support: add optional proxy parameter #103
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds an optional proxy parameter to TezartClient, RpcInterface, etc., that allows requests to be proxied through a SOCKS5 proxy like Tor. For existing users, nothing is changed.
You can see an example of usage at https://github.com/cypherstack/stack_wallet/blob/6c4f266a1caabfb7983f5b59f500f63619c8a69b/lib/wallets/wallet/impl/tezos_wallet.dart#L111
Stack Wallet is currently using this code to use
tezart
over Tor using the embeddable Tor proxy we helped make, https://github.com/Foundation-Devices/torThank you for your library! I hope this helps someone else use Tezos more privately.
Closes #102