<p>It's not possible.
An address is created though a hash160 (RIPEMD160) which is a one-way function.</p>

<p>Creating a xpub key (bip32 extended public key) requires the according pubkey and the <code>chaincode</code>.
Alternatively you can calculate an xpub from an xpriv (extended private key).</p>

CC BY-SA 3.0
2016-12-05T10:45:35.457Z
2016-12-05T10:45:35.457Z
Jonas Schnelli
<p>I want to know is it possible to generate master public key from an address? if not, what is needed to generate xpub key?</p>

<public-key>
generating master public key from address
user43886
# generating master public key from address

(Asked by: username_0 on 2016-12-05)

I want to know is it possible to generate master public key from an address? if not, what is needed to generate xpub key?

**Tags:** public-key


---

## 1 answers

### Answer by username_1 on 2016-12-05. Score: 1

It's not possible.
An address is created though a hash160 (RIPEMD160) which is a one-way function.

Creating a xpub key (bip32 extended public key) requires the according pubkey and the `chaincode`.
Alternatively you can calculate an xpub from an xpriv (extended private key).


---

