<p>Bitcoin Gold uses a different address format than Bitcoin. Even though the private keys can be used across coins, the addresses calculated from them will look different from each other but still encode the same data.</p>

CC BY-SA 3.0
2018-02-03T05:42:08.020Z
2018-02-03T05:42:08.020Z
Ava Chow
<p>I'm in the process of trying to import an existing paper wallet BTC private key into a Bitcoin Gold node I setup so that I can grab the BTG that was airdropped there, however whenever I try to importprivkey the public address associated doesn't match what I had generated, and there are no funds there (they are there if I have the right address in the BTG block chain explorer) I tried:</p>

<ol>
<li>Generating a random new address on bitaddress.org
<code>1MiXQPkKZersaFrPmteiUexGbyLEATxD8x / Ky324ikVv9HAjeoz7CVWQN2zA8bVY3aDU1gJq8tJjpEQRmUgJXCK</code></li>
<li>Importing that address in the cli - <code>./bgold-cli importprivkey "Ky324ikVv9HAjeoz7CVWQN2zA8bVY3aDU1gJq8tJjpEQRmUgJXCK" "test" true</code></li>
<li>Get the address for the private key I just imported <code>bgold-cli getaddressesbyaccount</code></li>
</ol>

<p>I'd expect to get <code>1MiXQPkKZersaFrPmteiUexGbyLEATxD8x</code> but instead get:</p>

<pre><code>bgold-cli getaddressesbyaccount test
[
  "GeZSpX5GYWUAej9ghqJpuRJAX985Ayn99A"
]
</code></pre>

<p>What am I doing wrong here?  Why is my public address getting morphed?</p>

<bitcoind><bitcoin-cli><bitcoin-gold>
importprivkey in bitgold-cli not importing the expected address
BadPirate
# importprivkey in bitgold-cli not importing the expected address

(Asked by: username_0 on 2018-02-02)

I'm in the process of trying to import an existing paper wallet BTC private key into a Bitcoin Gold node I setup so that I can grab the BTG that was airdropped there, however whenever I try to importprivkey the public address associated doesn't match what I had generated, and there are no funds there (they are there if I have the right address in the BTG block chain explorer) I tried:

1. Generating a random new address on bitaddress.org
   `1MiXQPkKZersaFrPmteiUexGbyLEATxD8x / Ky324ikVv9HAjeoz7CVWQN2zA8bVY3aDU1gJq8tJjpEQRmUgJXCK`
2. Importing that address in the cli - `./bgold-cli importprivkey "Ky324ikVv9HAjeoz7CVWQN2zA8bVY3aDU1gJq8tJjpEQRmUgJXCK" "test" true`
3. Get the address for the private key I just imported `bgold-cli getaddressesbyaccount`

I'd expect to get `1MiXQPkKZersaFrPmteiUexGbyLEATxD8x` but instead get:

```
bgold-cli getaddressesbyaccount test
[
  "GeZSpX5GYWUAej9ghqJpuRJAX985Ayn99A"
]

```

What am I doing wrong here? Why is my public address getting morphed?

**Tags:** bitcoind, bitcoin-cli, bitcoin-gold


---

## 1 answers

### Answer by username_1 on 2018-02-03. Score: 1

Bitcoin Gold uses a different address format than Bitcoin. Even though the private keys can be used across coins, the addresses calculated from them will look different from each other but still encode the same data.


---

