<p>You need the public addresses of all persons involved in order to create the multi-sig address. So if you are creating a 3 of 5 multi-sig address you need all 5 public address.  In order to retrieve funds from that address you need signatures from 3 of the 5 people (or however many signatures you require). Check out this example <a href="https://gist.github.com/gavinandresen/3966071" rel="nofollow noreferrer" title="here">here</a>, which was a huge help for me. </p>

<p>bitrated.com and <a href="https://coinb.in/multisig/" rel="nofollow noreferrer">https://coinb.in/multisig/</a> have open source implementations of this as well.  </p>

CC BY-SA 4.0
2014-03-21T03:06:13.387Z
2019-08-11T17:23:31.360Z
2019-08-11T17:23:31.360Z
juicemania
<p>When you create a multi-signature address using pay-to-script-hash (p2sh), you create an address by hashing a <em>redeemscript</em> (hence the name). This redeemscript specifies the requirements to spend any funds sent to the resulting address. To lock funds to a quorum of 3-of-5, you will need to include the five <strong>public keys</strong> of the involved parties in the redeemscript. Therefore, neither addresses nor private keys are needed to generate a multi-signature address, but all five <strong>public keys</strong> must be known to the party that creates the address. As the redeemscript (and therefore the public keys) is revealed at the time of spending funds sent to the address in the transaction's input script, there is no expectation of keeping the public keys private in the long run. </p>

<p>To maintain privacy, the five participants should each generate a new key pair for this multi-signature address instead of reusing an existing public key. They could however use their existing public keys to authenticate the new public keys by signing a message stating their ownership with their old public key.</p>

CC BY-SA 4.0
2019-08-11T17:43:05.097Z
2019-08-11T17:43:05.097Z
Murch
<p>Is it possible for person A, person B, and person C to create a multiple signature address without one person needing to initially know all three addresses to create that public address in the first place?</p>

<p>Ideally 5 people somehow create an address together, maybe passing it on to each other? But only if 3 out of those 5 private keys are used, can money be gotten out of that wallet?</p>

<multi-signature><address-generation>
Can multiple people create one multisignature address, while keeping their private keys private?
mczarnek
# Can multiple people create one multisignature address, while keeping their private keys private?

(Asked by: username_0 on 2014-03-21)

Is it possible for person A, person B, and person C to create a multiple signature address without one person needing to initially know all three addresses to create that public address in the first place?

Ideally 5 people somehow create an address together, maybe passing it on to each other? But only if 3 out of those 5 private keys are used, can money be gotten out of that wallet?

**Tags:** multi-signature, address-generation


---

## 2 answers

### Answer by username_1 on 2014-03-21. Score: 2 | Accepted answer

You need the public addresses of all persons involved in order to create the multi-sig address. So if you are creating a 3 of 5 multi-sig address you need all 5 public address. In order to retrieve funds from that address you need signatures from 3 of the 5 people (or however many signatures you require). Check out this example [here](https://gist.github.com/gavinandresen/3966071 "here"), which was a huge help for me.

bitrated.com and <https://coinb.in/multisig/> have open source implementations of this as well.


---

### Answer by username_2 on 2019-08-11. Score: 0

When you create a multi-signature address using pay-to-script-hash (p2sh), you create an address by hashing a *redeemscript* (hence the name). This redeemscript specifies the requirements to spend any funds sent to the resulting address. To lock funds to a quorum of 3-of-5, you will need to include the five **public keys** of the involved parties in the redeemscript. Therefore, neither addresses nor private keys are needed to generate a multi-signature address, but all five **public keys** must be known to the party that creates the address. As the redeemscript (and therefore the public keys) is revealed at the time of spending funds sent to the address in the transaction's input script, there is no expectation of keeping the public keys private in the long run.

To maintain privacy, the five participants should each generate a new key pair for this multi-signature address instead of reusing an existing public key. They could however use their existing public keys to authenticate the new public keys by signing a message stating their ownership with their old public key.


---

