# TOR and Slatepack addresses

**URL:** <https://forum.grin.mw/t/tor-and-slatepack-addresses/7742>\
**Category:** Tech Support\
**Created:** [August 26, 2020, 3:10am UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742 "2020-08-26T03:10:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [August 26, 2020, 3:10am UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/1 "2020-08-26T03:10:12Z")

</div>

Okay so, I’m having trouble attempting TOR hidden service transfer, I have 2 computers, one is listening `grin-wallet -e listen` and when I run on my other computer `grin-wallet send --dest <slatepack addr> <amt>` I get `Unable to send transaction via TOR. Attempting alternate methods.` What might I be doing wrong?

This also brings me to my other question: what is the proper way of installing tor (just the executable)  
I _think_ I have tor working at least on my listening machine, because grin-wallet says: `Starting TOR Hidden Service for API listener at address...`

Both of my machines running Ubuntu 18 by the way.

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![quentinlesceller](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/quentinlesceller/32/21_2.png) [@quentinlesceller](https://forum.grin.mw/u/quentinlesceller)\
**Post date:** [August 26, 2020, 7:52am UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/2 "2020-08-26T07:52:53Z")

</div>

Which version of tor are you running?

---

<div class="post-metadata">

**Author:** ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)\
**Post date:** [August 26, 2020, 7:56am UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/3 "2020-08-26T07:56:08Z")

</div>

You don’t need to use the `-e` flag by the way.

---

<div class="post-metadata">

**Author:** ![johndavies24](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/johndavies24/32/1828_2.png) [@johndavies24](https://forum.grin.mw/u/johndavies24)\
**Post date:** [August 26, 2020, 11:09am UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/4 "2020-08-26T11:09:40Z")

</div>

Ubuntu 18 is too old for debian. You need to build tor locally to get the proper version of tor. Or you need to update your OS.

---

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [August 26, 2020, 3:35pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/5 "2020-08-26T15:35:38Z")

</div>

too old for \*grin ?

By the way, (correct me if I’m wrong) it seems like sending via any kind of HTTP even tor is being deprecated? In which case I will just focus on slatepacks

---

<div class="post-metadata">

**Author:** ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)\
**Post date:** [August 26, 2020, 3:45pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/6 "2020-08-26T15:45:07Z")

</div>

He probably meant too old for Tor. Grin wallet uses onionv3 addresses, and unless you build Tor yourself, you won’t have a version up-to-date enough to support these type of addresses, unfortunately (I’ve had the same annoying problem).

Regarding your other question, yes http is being deprecated. Tor is definitely _not_.

---

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [August 26, 2020, 3:47pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/7 "2020-08-26T15:47:36Z")

</div>

Okay thanks. I might be doing something wrong then? My understanding is you send via tor just like http like  
`grin-wallet send --dest 'http://address.onion' <amt>`

and it gives me the “http is deprecated” message?

---

<div class="post-metadata">

**Author:** ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)\
**Post date:** [August 26, 2020, 3:51pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/8 "2020-08-26T15:51:12Z")

</div>

Ignore that message.

---

<div class="post-metadata">

**Author:** ![johndavies24](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/johndavies24/32/1828_2.png) [@johndavies24](https://forum.grin.mw/u/johndavies24)\
**Post date:** [August 26, 2020, 4:24pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/9 "2020-08-26T16:24:50Z")

</div>

no, your OS is deprecated and too old. It is not supported anymore and the tor build in the repositories is out of date. Your OS is so deprecated, that the backport repositories from the some 4 versions of debian since then are also unable to install tor as one of the dependencies doesnt exist for your deprecated OS. You can upgrade your OS or build tor locally.

Tor is not being deprecated for grin, just http

---

<div class="post-metadata">

**Author:** ![johndavies24](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/johndavies24/32/1828_2.png) [@johndavies24](https://forum.grin.mw/u/johndavies24)\
**Post date:** [August 26, 2020, 4:26pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/10 "2020-08-26T16:26:08Z")

</div>

Your send should be to a slatepack address, which is not in the format you show here, this will not work.

> [@betajuice](#):
>
> ‘[http://address.onion](http://address.onion)’

---

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [August 26, 2020, 4:32pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/11 "2020-08-26T16:32:49Z")

</div>

Okay, I’m confused then. slatepack address somehow encodes a tor address?

---

<div class="post-metadata">

**Author:** ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)\
**Post date:** [August 26, 2020, 4:39pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/12 "2020-08-26T16:39:07Z")

</div>

Exactly. I’ll explain.

Your Slatepack address is in fact an `ed25519` public key, bech32 encoded.

It serves a double purpose:

- A Tor address can be derived from it `bech32 -> ed25519 -> onionv3`.
- A `x25519` encryption key can be derived from it, used to encrypt (automatically) the slatepack messages only for the sender and receiver to see. `bech32 -> ed25519 -> x25519`.

By the way, for wallet references see this [guide](https://paouky.github.io/docs/getting-started/wallet/) (updated to v4.0.0).

---

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [August 26, 2020, 4:52pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/13 "2020-08-26T16:52:09Z")

</div>

wow okay that is awesome. Thanks for that link, I hadn’t found that documentation, it looks very nice, I’ll be reading through it

---

<div class="post-metadata">

**Author:** ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)\
**Post date:** [August 26, 2020, 5:06pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/14 "2020-08-26T17:06:32Z")

</div>

Sure thing, feel free to ask more questions when they come up.

That documentation is work-in-progress for now, which is why you haven’t found it.

---

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [August 26, 2020, 6:54pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/15 "2020-08-26T18:54:44Z")

</div>

I’m having trouble with sending via TOR. I have compiled Tor 0.4.3.6 and installed on both systems. I set listening address in `grin-wallet.toml` to 0.0.0.0, after running `grin-wallet listen` it says (replaced addresses with dots):

> ```
> 20200826 18:47:26.724 WARN grin_wallet_controller::controller - Starting TOR Hidden Service for API listener at address ..., binding to 0.0.0.0:3415
> 20200826 18:47:28.856 WARN grin_wallet_controller::controller - Starting HTTP Foreign listener API server at 0.0.0.0:3415.
> 20200826 18:47:28.856 WARN grin_wallet_controller::controller - HTTP Foreign listener started.
> 20200826 18:47:28.856 WARN grin_wallet_controller::controller - Slatepack Address is: ...
> 
> ```

And (on my other machine) when I do `grin-wallet send -d <slatepack-addr> <amt>`  
It says:

> 20200826 13:47:47.626 WARN grin\_wallet\_api::owner - Attempting to send transaction via TOR  
> 20200826 13:48:11.045 WARN grin\_wallet\_api::owner - Unable to send transaction via TOR. Attempting alternate methods.

Is there a guide on how to do a TOR transaction? Haven’t had any luck so far.

---

<div class="post-metadata">

**Author:** ![Paouky](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/paouky/32/513_2.png) [@Paouky](https://forum.grin.mw/u/Paouky)\
**Post date:** [August 26, 2020, 7:16pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/16 "2020-08-26T19:16:01Z")

</div>

Can you make sure Tor is on system path?

---

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [August 26, 2020, 7:18pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/17 "2020-08-26T19:18:13Z")

</div>

yes, `tor --version` -\>  
`Tor version 0.4.3.6.`

---

<div class="post-metadata">

**Author:** ![johndavies24](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/johndavies24/32/1828_2.png) [@johndavies24](https://forum.grin.mw/u/johndavies24)\
**Post date:** [August 26, 2020, 7:53pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/18 "2020-08-26T19:53:18Z")

</div>

My grin-wallet.toml is listening to local ip 127.0.0.1 I believe the comment about making it 0.0.0.0 is for http listening.

You can use the grin++ service to see if your tor address is reachable [Is this Grin Wallet URL Reachable?](https://forum.grin.mw/t/is-this-grin-wallet-url-reachable/7349)

---

<div class="post-metadata">

**Author:** ![betajuice](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/betajuice/32/966_2.png) [@betajuice](https://forum.grin.mw/u/betajuice)\
**Post date:** [August 26, 2020, 8:15pm UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/19 "2020-08-26T20:15:28Z")

</div>

I got it to work!!!

I had to set ip 0.0.0.0 on http listener, but leave the tor configuration the same… which I thought I had before so I’m not entirely sure why it wasn’t working before…

thank you

---

<div class="post-metadata">

**Author:** ![mcm-mike](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/mcm-mike/32/3492_2.png) [@mcm-mike](https://forum.grin.mw/u/mcm-mike)\
**Post date:** [August 27, 2020, 9:32am UTC](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742/20 "2020-08-27T09:32:44Z")

</div>

> [@Paouky](#):
>
> That documentation is work-in-progress for now, which is why you haven’t found it.

I can help you review your [https://paouky.github.io/docs/getting-started/node.md](https://paouky.github.io/docs/getting-started/node.md) section as we run a lot of nodes at [grinnode.live](https://grinnode.live/)

[Next page](https://forum.grin.mw/t/tor-and-slatepack-addresses/7742.md?page=2)
