Title: Dump private keys from Bitcoin core Post by: scarich on March 06, 2019, 11:53:05 AM Hello! Could you clarify, please, one issue for me. All of the addresses which Bitcoin core generates are the multisig addresses (starts on 3). There is no problem for me to dump the private key or the whole wallet from Bitcoin core, and after import it in Bitcoin core. But if I try to dump that private key and import it to another wallet (eg Electrum) I get the empty balance, address is differ and it is not multisig. How can I import the private key of multisig address?
Title: Re: Dump private keys from Bitcoin core Post by: Pmalek on March 06, 2019, 11:59:22 AM Take a look at this thread > https://bitcointalk.org/index.php?topic=4100241.0
Try this: If it's a 3 of 3 multisig, in order to import it into Electrum, you'd need all three xprivs (master private keys) Go to file->New/Restore Enter a name for your wallet Select "multisig wallet" Choose the multisig scheme (eg 2 of 2, 2 of 3, 3 of 3,) Select "use a master key) if you have the xprivs or "use an existing seed" if you have the seed phrases Enter the first xpriv, click next Save the xpub , click next enter the xpriv or seed of second cosigner, click next repeat the procedure for the last cosigner enter a password for the wallet for security, click next And your multisig is restored. Or this: I have the 3 private keys of the 3 participants (3-of-3). Is it possible to import the BTC from the multi-sig address to Electrum wallet? As Abdussamad has said, if the "private keys" that you have are NOT Master Private Keys (ie. xprivs) then you cannot recreate the MultiSig in Electrum.However, you can certainly get the funds to your Electrum wallet if you have the 3 private keys... One possible option would be to use a service like coinb.in to: 1. Replicate the 3-of-3 MultiSig using the "New -> MultiSig Address" feature of Coinb.in (https://coinb.in/#newMultiSig):
and then you can... 2. Create a transaction (https://coinb.in/#newTransaction) that spends from that MultiSig Address
NOTES: You should consider the MultiSig Address (and the 3 private keys used) compromised if you do this... I would not recommend using that address or the private keys again. Title: Re: Dump private keys from Bitcoin core Post by: scarich on March 06, 2019, 01:47:15 PM Pmalek, thank you very much, it is very useful! But how can I see all the private and public keys (I mean of all participants) of the current multisig address in Bitcoin core? If a use command "dumpprivkey " address" I see only one private key. Which command I should use?
Title: Re: Dump private keys from Bitcoin core Post by: Abdussamad on March 06, 2019, 07:22:21 PM Core addresses are not multisig by default. Those are p2sh segwit addresses. When importing in electrum you have to prepend p2wpkh-p2sh: to the private key. For example:
Code: pw2pkh-p2sh:Lflkdlkj.... To dump all the private keys use the dumpwallet command in core debug console. dumpwallet </path/to/somefile> . open that file in a text editor to see the priv keys. Title: Re: Dump private keys from Bitcoin core Post by: scarich on March 06, 2019, 08:10:45 PM Abdussamad, thanks for explanation! That exactly what I needed :)
|