hivewallet / hive-mac

Hive Bitcoin wallet for the Mac (UNMAINTAINED)
https://mac.hivewallet.com
GNU General Public License v2.0
286 stars 55 forks source link

make any network connections through Tor #137

Open ghost opened 10 years ago

mikehearn commented 10 years ago

See the incomplete docs here:

https://code.google.com/p/bitcoinj/wiki/Networking

applies to 0.11 only

mikehearn commented 10 years ago

FYI, Miron plans to work on Tor-by-default in February, without needing the user to download/run Tor itself. So you should be able to ignore this and it'll just auto-magically happen at some point.

mackuba commented 10 years ago

Do you think it will be possible to reuse the Tor functionality of bitcoinj for other (not strictly Bitcoin protocol related) connections? E.g. we might want to make the apps connect through Tor.

mikehearn commented 10 years ago

Yeah. You can do it two ways. One is to bridge low level socket read/write calls. This is a bit cleaner. The other way is to use Orchids built in SOCKS server and then tell WebKit to connect back through localhost to the SOCKS server running on the Java side. This is probably less effort but it (obviously) involves having listening sockets open on the machine which may or may not play well with multi-user systems, firewalls, etc.

mikehearn commented 10 years ago

Integrated Tor support has been merged to bitcoinj git master. It can be enabled with one line of code, but please be aware of the caveats. It's probably a good thing to use the new preferences pane for:

https://groups.google.com/forum/#!topic/bitcoinj/XlL5jJs9ur8