Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: doof on October 11, 2014, 11:28:24 PM



Title: Bitcoin core create multisig
Post by: doof on October 11, 2014, 11:28:24 PM
I have made multisig addresses fine using bitcoind.  However, trying to use command line in bitcoin core. 

I get the error "no full public key for address 1QDEt1YYJN8qmfa7pdwwo45SAbVaYJT553 (code -1)" using the command

createmultisig 2 '["1A", "1B"]'

Where 1B address is a cold storage address.  Is this by design?


Title: Re: Bitcoin core create multisig
Post by: chanz on October 12, 2014, 04:51:14 AM
You are creating a multisig of 2of2 there. Are you specifying the full public key with createmultisig 2?
you can do validateaddress and copy paste the pub key for that.


Title: Re: Bitcoin core create multisig
Post by: doof on October 12, 2014, 05:38:01 AM
Yes, a 2 of 2 address is the intention.  I was supplying the BTC Address in part 2.   If that address exists in the wallet however, then it will create the multisig address.


Title: Re: Bitcoin core create multisig
Post by: doof on October 12, 2014, 05:46:11 AM
Ok, i see what you mean by "validateaddress"


Title: Re: Bitcoin core create multisig
Post by: chanz on October 12, 2014, 06:21:34 AM
1. { validateaddress "address" } Do it with both addresses and copy the "pubkey" it gives you.
2. { createmultisig 2 '["1st pubkey","2nd pubkey"]' }
3. Save the redeemScript.
4. Paste the same command in step-2 but replace "createmultisig" with "addmultisigaddress"

Hope it works.


Title: Re: Bitcoin core create multisig
Post by: doof on October 12, 2014, 06:44:58 AM
Thanks.  The other address is coming from multi bit.  When I export the privkey, its uncompressed.  Bitcoin core is giving it compressed.

Im looking at using coinb.in to create the mulisig address, but requires the pub keys to be uncompressed.  Can core export it uncompressed?


Title: Re: Bitcoin core create multisig
Post by: chanz on October 12, 2014, 04:00:54 PM
I don't think it can actually maybe but i never saw anything like that as it does say ""iscompressed":"true"".
You should look at these thread again i have no clue but you might find something helpful.
Multi Signature Address Script and Escrow Service (https://bitcointalk.org/index.php?topic=390046.0;all)
Exporting a Private Key from Multibit; Importing the key to Bitcoin-QT (https://bitcointalk.org/index.php?topic=336404.0)
Support compressed keys. (https://github.com/OutCast3k/bitcoin-multisig/issues/13)