Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: andrew1carlssin on March 25, 2018, 03:34:56 PM



Title: Bech32 for Onion address V3
Post by: andrew1carlssin on March 25, 2018, 03:34:56 PM
Hi,

I have used a vanity generator called mkp224o - This tool generates vanity ed25519 (hidden service version 3) onion addresses.
For context, see https://gitweb.torproject.org/torspec.git/plain/rend-spec-v3.txt

https://github.com/cathugger/mkp224o

Then I used nullius tool to convert it to bech32 address ( bech32 -e )...

the output was something like lets say ...

onion1xdnsv70edyuqrj666hlhtry2t93eq8lt565zqw2yug6sat9a5aj40mgrrtdfaz

My question is.. it a valid bitcoin address ? 


Title: Re: Bech32 for Onion address V3
Post by: starmyc on March 25, 2018, 03:47:06 PM
No, they are not valid bitcoin address.

Valid bech32 bitcoin addresses are prefixed by bc (tb for testnet), and contains a witness program (which I'm sure the Tor rendezvous is not compatible with at all).


Title: Re: Bech32 for Onion address V3
Post by: buwaytress on March 25, 2018, 03:47:28 PM
My simple answer: no. As far as I understand, the tool from nullius is for encoding/decoding - NOT for generating... so your output looks valid. It should be a bech32 encoded address (which if decoded should return to you the original address  - but that is not a valid bitcoin public address.


Title: Re: Bech32 for Onion address V3
Post by: andrew1carlssin on March 25, 2018, 04:08:12 PM
No, they are not valid bitcoin address.

Valid bech32 bitcoin addresses are prefixed by bc (tb for testnet), and contains a witness program (which I'm sure the Tor rendezvous is not compatible with at all).

Thanks, I did suspect that  ;D