Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Integrated TOR proxy #810

Closed
wants to merge 2 commits into from
Closed

Conversation

rorp
Copy link

@rorp rorp commented Dec 4, 2022

Description

This PR adds the example code for how to use the integrated Rust Tor client to sync a BDK wallet.

It simply extends the existing blockchain examples: compact_filters_balance, electrum_backend, esplora_backend_asynchronous, and esplora_backend_synchronous.

To run an example with Tor you need to set TOR environment variable to 1 or true like:

$ TOR=1 cargo run --example=compact_filters_balance --features="compact_filters"

In this case the example code will start a Tor daemon, and configure the network client to use Tor as a SOCKS5 proxy.
compact_filters_balance also creates a hidden service for a locally running bitcoind.

Fixes #66

Notes to the reviewers

Changelog notice

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature

Bugfixes:

  • This pull request breaks the existing API
  • I've added tests to reproduce the issue which are now passing
  • I'm linking the issue being fixed by this PR

@notmandatory
Copy link
Member

Rather than adding TOR to the existing examples I recommend creating one self contained example that demonstrates using a TOR proxy with the esplora or electrum blockchain client.

@rorp rorp closed this Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Integrated TOR proxy
2 participants