<p>You can try to miniscript compiler <a href="http://bitcoin.sipa.be/miniscript/" rel="nofollow noreferrer">http://bitcoin.sipa.be/miniscript/</a> with the policy <code>or(pk(K1),thresh(3,pk(K2),pk(K3),pk(K4),pk(K5),pk(K6)))</code> to get a corresponding Script.</p>
<p>However, to the best of my knowledge there are no user-friendly wallets supporting this as of now. But there is work being done on trying to get Miniscript into bitcoin core that can allow signing for such complex scripts generically.</p>
<p>Disclaimer: I am one of the people working on Miniscript project.</p>

CC BY-SA 4.0
2020-07-17T09:22:05.557Z
2020-07-17T09:22:05.557Z
sanket1729
<p>Yes, this is possible. You can construct a script such as:</p>

<pre><code>OP_IF
    &lt;key1&gt;
    OP_CHECKSIG
OP_ELSE
    OP_3
    &lt;key2&gt;
    &lt;key3&gt;
    &lt;key4&gt;
    &lt;key5&gt;
    &lt;key6&gt;
    OP_5
    OP_CHECKMULTISIG
OP_ENDIF
</code></pre>

<p>This will allow <code>key1</code> to freely spend the coins, but if a signature from <code>key1</code> is not present it also allows any 3 of the keys2-6 to spend the coins.</p>

CC BY-SA 4.0
2019-08-05T01:09:39.923Z
Awesome! Are there any wallets that support creating a structure like that?
B T
CC BY-SA 4.0
2019-08-05T01:24:26.617Z
Not to myknowledge - this is fairly non-standard, so you would likely have to script something yourself
Raghav Sood
CC BY-SA 4.0
2021-12-12T11:23:06.447Z
what does the OP_5 do here?
Antoni
CC BY-SA 4.0
2021-12-12T19:25:08.077Z
the OP_IF cant do anything because the stack is empty
Antoni
CC BY-SA 4.0
2019-08-05T00:45:51.600Z
2019-08-05T00:45:51.600Z
Raghav Sood
<p>I'd like to create a multi-sig wallet where I can freely create transactions, but I want to give keys to trusted friends/family + a safety deposit box so that if I hit my head and forget my password, or I die, then the trusted people can recover my coins.</p>

<p>Is this something Bitcoin currently supports or plans to support?</p>

<script><multi-signature>
Is it possible to do a 3-of-5 OR 1 multi-sig for backup purposes?
B T
# Is it possible to do a 3-of-5 OR 1 multi-sig for backup purposes?

(Asked by: username_0 on 2019-08-05)

I'd like to create a multi-sig wallet where I can freely create transactions, but I want to give keys to trusted friends/family + a safety deposit box so that if I hit my head and forget my password, or I die, then the trusted people can recover my coins.

Is this something Bitcoin currently supports or plans to support?

**Tags:** script, multi-signature


---

## 2 answers

### Answer by username_2 on 2019-08-05. Score: 6 | Accepted answer

Yes, this is possible. You can construct a script such as:
OP_IF
    
    OP_CHECKSIG
OP_ELSE
    OP_3
    
    
    
    
    
    OP_5
    OP_CHECKMULTISIG
OP_ENDIF

This will allow key1 to freely spend the coins, but if a signature from key1 is not present it also allows any 3 of the keys2-6 to spend the coins.

> **Comments:**
> **username_0**: Awesome! Are there any wallets that support creating a structure like that?  
> **username_2**: Not to myknowledge - this is fairly non-standard, so you would likely have to script something yourself  
> **username_3**: what does the OP_5 do here?  
> **username_3**: the OP_IF cant do anything because the stack is empty  

---

### Answer by username_1 on 2020-07-17. Score: 2

You can try to miniscript compiler <http://bitcoin.sipa.be/miniscript/> with the policy `or(pk(K1),thresh(3,pk(K2),pk(K3),pk(K4),pk(K5),pk(K6)))` to get a corresponding Script.

However, to the best of my knowledge there are no user-friendly wallets supporting this as of now. But there is work being done on trying to get Miniscript into bitcoin core that can allow signing for such complex scripts generically.

Disclaimer: I am one of the people working on Miniscript project.


---

