<p>No, it's not possible to get a single public seed for all future addresses.</p>

<p>Let's say you have three private seeds, <code>Sa</code>, <code>Sb</code> and <code>Sc</code> with public seeds (xpubs) <code>Pa</code>, <code>Pb</code> and <code>Pc</code> that generate the addresses <code>Px1</code>, <code>Px2</code>, ...</p>

<p>Then, the way to calculate the multi-sig addresses for a 2-of-3 multisig for these three seeds using <a href="https://bitcoin.org/en/glossary/p2sh-address" rel="nofollow noreferrer">P2SH</a> is the following:</p>

<p>You create a P2SH redeem script that looks as follows: </p>

<pre><code>OP_2 [Pa1] [Pb1] [Pc1] OP_3 OP_CHECKMULTISIG
</code></pre>

<p>Then, the "multisig address" is the RIPEMD-160 hash of that script.</p>

<p>Thus, to know the next address, you will need to calculate a new RIPEMD-160 hash with the script now containing <code>Pa2</code>, <code>Pb2</code> and <code>Pc2</code>. There is not a multi-seed of any kind.</p>

CC BY-SA 3.0
2018-01-12T13:34:57.593Z
2018-01-12T13:34:57.593Z
Steven Roose
<p>I created a multi signature wallet 2 of 3. I want to get the xpub key used to generate the addresses. As I understand all 3 public keys are used to generate the address. Is it possible to use those 3 keys to generate a single xpub key for further addresses?</p>

<bitcoin-core><multi-signature>
Get single xpub key from multi signature wallet
keepwalking
# Get single xpub key from multi signature wallet

(Asked by: username_0 on 2018-01-08)

I created a multi signature wallet 2 of 3. I want to get the xpub key used to generate the addresses. As I understand all 3 public keys are used to generate the address. Is it possible to use those 3 keys to generate a single xpub key for further addresses?

**Tags:** bitcoin-core, multi-signature


---

## 1 answers

### Answer by username_1 on 2018-01-12. Score: 0 | Accepted answer

No, it's not possible to get a single public seed for all future addresses.

Let's say you have three private seeds, `Sa`, `Sb` and `Sc` with public seeds (xpubs) `Pa`, `Pb` and `Pc` that generate the addresses `Px1`, `Px2`, ...

Then, the way to calculate the multi-sig addresses for a 2-of-3 multisig for these three seeds using [P2SH](https://bitcoin.org/en/glossary/p2sh-address) is the following:

You create a P2SH redeem script that looks as follows:

```
OP_2 [Pa1] [Pb1] [Pc1] OP_3 OP_CHECKMULTISIG

```

Then, the "multisig address" is the RIPEMD-160 hash of that script.

Thus, to know the next address, you will need to calculate a new RIPEMD-160 hash with the script now containing `Pa2`, `Pb2` and `Pc2`. There is not a multi-seed of any kind.


---

