Bitcoin Forum

Bitcoin => Electrum => Topic started by: zappylappy on February 27, 2021, 02:25:28 PM



Title: Create Multisig Wallet with public key?
Post by: zappylappy on February 27, 2021, 02:25:28 PM
Electrum seems IMHO only to support multisig addresses based on master public keys.

Is there a way within Electrum to create Multisig Addresses based on public keys?

To put in in other words, is there a way to create for example a 2-of-3 multisig from

1UiQ...
1Ais...
1YiP...

ZappyLappy



Title: Re: Create Multisig Wallet with public key?
Post by: AB de Royse777 on February 27, 2021, 02:40:52 PM
Is there a way within Electrum to create Multisig Addresses based on public keys?

To put in in other words, is there a way to create for example a 2-of-3 multisig from

1UiQ...
1Ais...
1YiP...
As far as I know the answer is "No".
This is not logical too. You need Master public key in between all the co-signers to create the multisig wallet.


Title: Re: Create Multisig Wallet with public key?
Post by: ranochigo on February 27, 2021, 02:59:36 PM
Those are addresses. You cannot create a multisig redeem script from addresses as they are the hash of the public keys.

If you have the ECDSA public keys of the addresses, you can create a multisig address and it's corresponding redeem script but you won't be able to import it. You can use createmultisig function from the console as below:
Code:
createmultisig(2,["PUBKEY1","PUBKEY2"])


Title: Re: Create Multisig Wallet with public key?
Post by: zappylappy on February 27, 2021, 03:34:35 PM
If you have the ECDSA public keys of the addresses, you can create a multisig address and it's corresponding redeem script but you won't be able to import it. You can use createmultisig function from the console as below:
Code:
createmultisig(2,["PUBKEY1","PUBKEY2"])
Thanks a lot!


Title: Re: Create Multisig Wallet with public key?
Post by: pooya87 on February 28, 2021, 04:41:10 AM
Those are addresses. You cannot create a multisig redeem script from addresses as they are the hash of the public keys.
You shouldn't do this and I'm going off-topic but it is not impossible.
Redeem script 2of2 multi-sig:
Code:
OP_DUP OP_HASH160 <hash160_1> OP_EQUALVERIFY OP_CHEKSIGVERIFY
OP_DUP OP_HASH160 <hash160_2> OP_EQUALVERIFY OP_CHEKSIG
To spend (same as spending multisig):
Code:
<sig2><pub2><sig1><pub1><redeem_script>