Bitcoin Forum
April 16, 2024, 04:53:06 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Two Questions About Multisignatures  (Read 245 times)
butka (OP)
Full Member
***
Offline Offline

Activity: 434
Merit: 246


View Profile
August 14, 2018, 12:28:32 PM
Merited by suchmoon (7), ABCbits (1)
 #1

I'm a total beginner when it comes to multisig addresses and wallets, so I would appreciate some help from the community.

1. I know that you can make a P2SH (pay to script hash) address that can be redeemed by a multisig script. But can you create a multisig wallet for P2PKH addresses? 

I see that Electrum has this option (it asks for standard vs Segwit multisig wallet). It is somehow not clear to me how the output script is redeemed in the first case, as we have to have a hash of a multisig script, not a hash of a public key.

2. Second, I wasn't able to find a decisive answer, so probably what I'm suggesting is not possible. But it won't hurt to ask.

Let's say I want to make a multisig 2 of 3. Is there a way to make one of the signatures mandatory?

This would be convenient in hypothetical situations like the following. Let's say the money belongs to me, but I want to involve other people (to possibly improve security) so I create a multisig address 2 of 3:

  • the 1st key is held by me
  • the 2nd key is held by a relative
  • the 3rd key is held by a friend.

If the first key is mandatory, my relative and my friend cannot conspire against me and steal my money.

Is there a place in the redeem script for complex logic that is probably needed to define what keys are optional and what mandatory?

After some consideration, it occurred to me that what I'm trying to achieve can be done by a 3 out of 4 multisig:

  • the 1st key is held by me
  • the 2nd key is held by me
  • the 3rd key is held by a relative
  • the 4th key is held by a friend.

so the dilemma is solved, but still the question remains, can there be a mandatory signature in a multisig solution?

Thanks in advance and sorry if some of these questions are dumb or obvious.
1713243186
Hero Member
*
Offline Offline

Posts: 1713243186

View Profile Personal Message (Offline)

Ignore
1713243186
Reply with quote  #2

1713243186
Report to moderator
If you want to be a moderator, report many posts with accuracy. You will be noticed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
TryNinja
Legendary
*
Offline Offline

Activity: 2800
Merit: 6952



View Profile WWW
August 14, 2018, 12:31:55 PM
 #2

AFAIK it's not possible. You'll need to use the 3-of-4 scheme.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
ranochigo
Legendary
*
Offline Offline

Activity: 2954
Merit: 4158



View Profile
August 14, 2018, 02:03:33 PM
 #3

1. I know that you can make a P2SH (pay to script hash) address that can be redeemed by a multisig script. But can you create a multisig wallet for P2PKH addresses? 
No. P2PKH addresses (prefix of 1) doesn't allow the creator of the address to set a pre-defined condition. P2SH has scripts which allows the creator to set conditions for the outputs to be spent. The only thing that restricts P2PKH is to have a valid signature.

2. Second, I wasn't able to find a decisive answer, so probably what I'm suggesting is not possible. But it won't hurt to ask.

Let's say I want to make a multisig 2 of 3. Is there a way to make one of the signatures mandatory?
Yes. IIRC, one of the post on Bitcointalk was on this and it was possible in theory. I vaguely remember that it was years ago and I forgot all the technical details about it. I'll have to search my post history for a bit.

..JAMBLER.io..Create Your Bitcoin Mixing
Business Now for   F R E E 
▄█████████████████████████████
█████████████████████████
████▀████████████████████
███▀█████▄█▀███▀▀▀██████
██▀█████▄█▄██████████████
██▄▄████▀▄▄▄▀▀▀▀▀▄▄██████
█████▄▄▄██████████▀▄████
█████▀▄█▄██████▀█▄█████
███████▀▄█▀█▄██▀█▄███████
█████████▄█▀▄█▀▄█████████
█████████████████████████
█████████████████████████
▀█████████████████████████████
█████████████████████████████████████████████████
.
      OUR      
PARTNERS

.
█████████████████████████████████████████████████
████▄
██
██
██
██
██
██
██
██
██
██
██
████▀
▄█████████████████████████████
████████▀▀█████▀▀████████
█████▀█████████████▀█████
████████████████████████
███████████████▄█████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████▀█████████
████████████████████████
█████▄█████████████▄█████
████████▄▄█████▄▄████████
▀█████████████████████████████
█████████████████████████████████████████████████
.
   INVEST   
BITCOIN

.
█████████████████████████████████████████████████
████▄
██
██
██
██
██
██
██
██
██
██
██
████▀
Abdussamad
Legendary
*
Offline Offline

Activity: 3598
Merit: 1560



View Profile
August 14, 2018, 07:25:36 PM
 #4

so the dilemma is solved, but still the question remains, can there be a mandatory signature in a multisig solution?

Any thing that you can code with the bitcoin script language can be turned into a p2sh address. Smart contracts and such for example. However no wallet supports such solutions out of the box right now so while it's possible it's out of the reach of lay persons.
butka (OP)
Full Member
***
Offline Offline

Activity: 434
Merit: 246


View Profile
August 14, 2018, 08:20:51 PM
 #5

No. P2PKH addresses (prefix of 1) doesn't allow the creator of the address to set a pre-defined condition. P2SH has scripts which allows the creator to set conditions for the outputs to be spent. The only thing that restricts P2PKH is to have a valid signature.
Any thing that you can code with the bitcoin script language can be turned into a p2sh address.
I see, thanks for clearing this up. So P2SH addresses are the ones that actually enable complex scripting necessary for multisignatures.

However no wallet supports such solutions out of the box right now so while it's possible it's out of the reach of lay persons.
So better to stick to mutlisig wallets. Just a thought. Given that some opcodes are disabled on the Bitcoin network, it could still happen that a complex script made by hand isn't currently redeemable after all.

To summarize point 2, in practice, the 3 of 4 wallet could be an easy solution.

Thank you all for your replies.
twthmoses
Full Member
***
Offline Offline

Activity: 301
Merit: 103


View Profile
August 16, 2018, 09:13:01 AM
 #6

To summarize point 2, in practice, the 3 of 4 wallet could be an easy solution.

Thank you all for your replies.


A very nice and easy solution, 3 out of 4, of which you own two of them. I guess that should work as you would like it to. You would always be a required signer.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!