Bitcoin Forum

Bitcoin => Electrum => Topic started by: Aesopspots on October 22, 2017, 10:08:57 AM



Title: Can I remove multisig function from wallet?
Post by: Aesopspots on October 22, 2017, 10:08:57 AM
I've been trying to send Bitcoin from my wallet on Linux, which I had linked with a Max Electrum wallet, the latter as co-signer.

I upgraded my Mac wallet and seem to have a new Bitcoin address and private key. Although I used my word seen to restore the old wallet, the old address and private key is not there.

How can I make transactions now from the Linux wallet without the original co-signer Private & Public Master Key/and address?

Can I remove the multisig feature and just go back to a standard wallet. KISS (keep it simple stupid!)?


Title: Re: Can I remove multisig function from wallet?
Post by: ranochigo on October 22, 2017, 10:12:41 AM
I upgraded my Mac wallet and seem to have a new Bitcoin address and private key. Although I used my word seen to restore the old wallet, the old address and private key is not there.
To restore your original multisig wallet, you have to restore it by putting in the xpub (master public keys) of all the co-signers. If you don't, the seed that you used will be considered as a normal address.

Create a new wallet by going to File>New/Restore> Multisignature wallet and choose to configuration that you have selected in the first place.
How can I make transactions now from the Linux wallet without the original co-signer Private & Public Master Key/and address?
Restore it using the method above.
Can I remove the multisig feature and just go back to a standard wallet. KISS (keep it simple stupid!)?
No. You have to send the Bitcoins out of the multisig wallet to a new wallet without multisig.


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 22, 2017, 03:08:02 PM
I upgraded my Mac wallet and seem to have a new Bitcoin address and private key. Although I used my word seen to restore the old wallet, the old address and private key is not there.
To restore your original multisig wallet, you have to restore it by putting in the xpub (master public keys) of all the co-signers. If you don't, the seed that you used will be considered as a normal address.


Thank you for your reply. I am not sure this will help, since I did not store the Master Public keys, for the Mac wallet used to co-sign the Linux wallet. Just the word seed  ???


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 23, 2017, 04:52:53 AM
Restoring your Mac wallet from word seed should have recreated an identical wallet on the Mac... that would have identical xpub/xpriv to the original wallet.

When you say you "upgraded your mac wallet", what exactly did you upgrade and how? Did you install a newer version of Electrum? Or did you install a completely different wallet app?


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 23, 2017, 09:20:55 PM
Thank you HCP.

I downloaded and installed Electrum 2.9.2, having had originally Electrum.2.8.3.

In fact I had an issue at the time of the new wallet (2.9.2) not connecting. I wrote here (last entry) https://github.com/spesmilo/electrum/issues/2726 (https://github.com/spesmilo/electrum/issues/2726)

I cannot now remember what I did to the old version, whether I deleted it and re-installed it... when I had a connection problem for instance.  

Anyhow, I ''  .....restored from seed, and it contains two master private keys. Therefore, two-factor authentication is disabled. ''

Perhaps this did something to the old version? I have tried, just a few days ago to use Time Machine, to go back to the old version as it was before I installed the newer one. But still have the problem.

With both versions of the wallet, when I load the transaction I wish to sign this is how it looks:

Transaction ID ...unknown
Status....  partially signed (3/6)
Amount received.....xxx mBTC
Size.....822 bytes
Fee ...unknown
Inputs....3
[Box]    three inputs infront of the Linux address
Outputs...(1)
Address highlight of the recipient  followed by amount   xxx

Copy QR  Save         xSign (..is not available)   xBroadcast (..is not available)  Close


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 24, 2017, 03:15:33 AM
Anyhow, I ''  .....restored from seed, and it contains two master private keys. Therefore, two-factor authentication is disabled. ''
Wait... you're trying to use a 2FA wallet as a cosigner to another MultiSig wallet? ??? I'm very confused... That is like effectively like using an (already created) MultiSig wallet as a co-signer to another MultiSig wallet... Is that even possible? ???

The normal process is:

- Start creating Electrum MultiSig1 wallet on computer1 (Linux) - Save the seed1, get the xpub1
- It will ask for the xpub for your co-signer
- Start creating Electrum MultiSig2 wallet on computer2 (Mac) - Save the seed2, get the xpub2
- It will ask for the xpub for your co-signer

At this point, you put xpub2 (from Mac) into MultiSig1 wallet (Linux)... and xpub1 (from Linux) into MultiSig2 wallet (Mac). This should then finished generating MultiSig wallets on both Linux and Mac that have the same addresses etc.

However, you seem to have originally created a 2FA wallet on you Mac? ??? Can you please explain how you originally setup your two MultiSig wallets on the Linux wallet and Mac wallet?



Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 24, 2017, 11:51:06 AM
When I first set up 2FA on the Mac it was with Google Authenticator 2FA to open the wallet.

I cannot remember every step I took to set up this original Mac wallet but I stored pertinent info, just in case... eg seed (plus extension), master public key

I had made a previous successful transfer of BTC from Linux to Mac to check it was all working. It was, there came up in the Mac wallet automatically the transaction to counter sign. I had not even been made aware then of the use of loading a saved transaction as I hadn't needed it.

I subsequently send before the first BTc fork funds to the Linux wallet and just recently returned to the Linux wallet to move them to the Mac wallet and encountered this problem. I think I have gone to the new version in this time.


Title: Re: Can I remove multisig function from wallet?
Post by: Abdussamad on October 24, 2017, 07:11:01 PM
the wallet type is mentioned in the electrum window title. tell us what it says there for the wallet with the bitcoins in it.


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 24, 2017, 11:31:51 PM
Then the real question is how did you set up the Linux wallet in the first place? It would appear that it is a MultiSig, as it is only "partially" signing the transaction. The question is, what Master Public Key did you use as the co-signer?

I had made a previous successful transfer of BTC from Linux to Mac to check it was all working. It was, there came up in the Mac wallet automatically the transaction to counter sign. I had not even been made aware then of the use of loading a saved transaction as I hadn't needed it.
Your previous transfer of BTC from Linux to Mac... did you just send to the address that the Mac was displaying under "receive" and the BTC came up in the Mac wallet? Or did you actually create a partially signed transaction and then transfer that to the Mac and then sign and broadcast from the Mac?


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 25, 2017, 10:11:06 AM
Abdussamad:

All the tile says is that it is Electrum 2.6.4


HCP:

I recall setting up the co-sig as the Mac Wallet with MPK, I either sent a test amount to myself from Linux to Mac, or it was to an exchange (I can't remember) but upon opening the Mac Wallet (which leads me to believe that first test was to myself and I went into the wallet on the Mac to see), I was immediately asked to sign the transaction, it just popped up to do.

That initial test did not require the save transaction process, and loading in the other wallet.






Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 25, 2017, 11:33:15 AM
All the tile says is that it is Electrum 2.6.4
2.6.4?? That is quite old... is that the version on Linux or Mac?


Quote
HCP:
I recall setting up the co-sig as the Mac Wallet with MPK, I either sent a test amount to myself from Linux to Mac, or it was to an exchange (I can't remember) but upon opening the Mac Wallet (which leads me to believe that first test was to myself and I went into the wallet on the Mac to see), I was immediately asked to sign the transaction, it just popped up to do.
That initial test did not require the save transaction process, and loading in the other wallet.
I suspect that you had the the "co-signer pool" plugin loaded and running... this plugin sends the transaction to a central Electrum server waiting for the co-signer to open their wallet and automagically sends them the transaction to sign.


To be honest, I'm still struggling with the idea of using a MPK from a 2FA wallet as a co-signer for a completely different MultiSig wallet... when you setup the Linux wallet, was that setup as 2FA as well? Or just as a "normal" MultiSig wallet?


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 25, 2017, 02:46:34 PM

2.6.4 -  Yes, it is the propriety Lite version that comes with Ubuntu Store.  I have since used Python to install another wallet* 2.9.3  which seems to be the latest available for Linux on the Electrum website

Quote
HCP:

I suspect that you had the the "co-signer pool" plugin loaded and running... this plugin sends the transaction to a central Electrum server waiting for the co-signer to open their wallet and automagically sends them the transaction to sign.
.. when you setup the Linux wallet, was that setup as 2FA as well?


-Just as a "normal" MultiSig wallet on the Linux. No 2FA,


In fact the Mac wallet required Google Authn, at some point, but I recall never having been asked to use it - I thought it was just to log in with nothing more. It's definitely something I started with, since it is there in Google Authn on my phone. I don't recall using it again, perhaps it wasn't set up right, so maybe we should ignore that.


*In attempts to find a remedy, I tried to create a wallet from my word seed in on my Linux PC.  Nothing shows (just a zero balance) - no inputs.

Going back to the 2.5.4 wallet (the original one), I cannot see any further info to help matters. Am I in the wrong pool? I am connecting with the automatic connection.


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 26, 2017, 12:14:35 AM
Ok... so it seems to me, that the issue here is that you are unable to recreate a wallet that has the private key(s) to be able to sign transactions created by your Linux wallet.

With 2.9.3 on Linux, you should be able to use the following menu option: "Wallet" -> "Master Public Keys"

You should see a window popup with a list of all the Master Public Keys. I assume there are only 2... "co-signer 1" (The Linux wallet) and "co-signer 2" (which should be the Mac wallet). is that correct?

The trick is to identify which seed/wallet that the MPK came from... once you do that, you'll be able to use that wallet to sign the Linux transactions. Are you sure you don't have any other wallets (non 2FA) on your Mac? Have you tried clicking "Open" and see if any other wallet files are listed?


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 26, 2017, 08:49:48 AM
Thank you HCP.

Yes I do have other wallets on the Mac frOm having tried to restore one that might work. They are all unrelated, when I choose to load a tx from the  Linux wallet. (Regardless whether I open the old or new version of Electrum, that's fine, I can bring up all wallets through OPEN on the Mac

Yesterday I tried to focus and look through them all to see the MPK links between the two computer's wallets.

The Linux wallet, althuogh does not show in the boarder the type of wallet, eg '2fa', '1of2' etc. But when I drop down the MPK from menu, I do see this

     x1/self ............ xpub661 ...etc
     x2/cosigner ....   xpub67z ...etc

In my attempts to create/restore these wallets on the Mac, I have failed, and produced only the following, all unrelated:-

     wallet type (1of2) 
     cosig 1: .....  new xpub6Br...etc
     cosig 2: .....    xpub661 ...etc

     wallet types (std) and (std, watching only)
                      ... xpub661 ...etc

     wallet type (1of2, watching only)
     cosig 1 .......   xpub67z ...etc
     cosig 2 .......new xpub69Y...etc

     wallet type (std, watching only)
                      .... xpub67z ...etc

I'm now thinking, what exactly are the right steps for the new wallet - I clearly don't want the xpub keys marked



Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 26, 2017, 10:28:49 AM
The one you really need to find is the EXACT copy of the "xpub67z" co-signer from the Linux wallet.

That last one... the wallet type (std, watching only)... xpub67z... is that the EXACT same xpub as reported by the Linux wallet? If so, how did you create that wallet?


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 26, 2017, 11:44:36 AM
These are all the wallets on the Mac.

As I said it was trial and mostly error. This last wallet in my list was probably made using the expub key, copied from the Linux wallet.


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 26, 2017, 12:40:31 PM
That's unfortunate... you need the seed/private key that matches that xpub... without it, you will not be able to co-sign any transactions from your Linux wallet...

Have you tried restoring your 2FA wallet with the 2FA seed and "Keep"ing the 2FA functionality... rather than "Disable"? After it is restored, checking what xpubs it has... see if any of the three xpubs in the 2FA wallet are "xpub67z"


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 26, 2017, 12:47:57 PM

Have you tried restoring your 2FA wallet with the 2FA seed and "Keep"ing the 2FA functionality... rather than "Disable"? After it is restored, checking what xpubs it has... see if any of the three xpubs in the 2FA wallet are "xpub67z"

Yes I have the original word seed from the Mac. I need to be clearer on what I should do to set up the wallet. I get a little confused still when it is a 2FA, or multi sig wallet - for isntance how many cosigs to have.

So, if there are any (more) steps I must follow , like  >"Keep"ing the 2FA functionality< please let me know> I will then give it a go.


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 26, 2017, 12:56:13 PM
Basically... you want to do:

1. File -> New\Restore (Pick a name)
2. Select - "Wallet with Two Factor Authentication" (option 2)
3. Select - "I already have a seed"
4. Enter your seed (it should say "Seed Type: 2fa", next to "Options" button)
5. Select - "Keep"
6. After clicking "Next" a couple of times, enter the email you originally used
7. Either put in your GAuth Code... or tick the "I have lost my Google Authenticator Account" box and keep going.

Once you've completed, you should be able to use: "Wallet -> Master Public Keys" and you should see CoSigner 1, 2 and 3


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 27, 2017, 09:11:06 AM

Once you've completed, you should be able to use: "Wallet -> Master Public Keys" and you should see CoSigner 1, 2 and 3

I tried this,
And when restored with the original 2FA on Google Authenticator ( I remembered this eventually) I get the correct cosign 1.
(I had not remembered first of all which email  that I used for Google 2FA, setting up another, with new email address, but this produced NO correct xpub keys i.e. all were new)

So,
In the latest attempt I have:-

Mac wallet type (2FA)
     cosig 1 .......   xpub67z ...etc
     cosig 2 .......new xpub69z...etc
     cosig 3 .......new xpub661...U etc

Where, Linux wallet is:-
     x1/self ............ xpub661 ...etc
     x2/cosigner ....   xpub67z ...etc


I think I need the xpub661 ...F etc shown in the restored Mac wallet using the multisig choice (not 2FA)using xpub from my Linux Ubuntu wallet.

As seen in this one I had created: wallet type (1of2)  
     cosig 1: .....  new xpub6Br...etc
     cosig 2: .....   xpub661 ...F etc



Title: Re: Can I remove multisig function from wallet?
Post by: Abdussamad on October 27, 2017, 09:42:59 AM
This is all very confusing. Only thing I can say is that the last co-signer of a 2fa wallet is usually trusted coin so you won't get the xprv of cosigner 3 if that's what you need.


Title: Re: Can I remove multisig function from wallet?
Post by: Abdussamad on October 27, 2017, 11:25:06 AM
I have trouble understanding you. Maybe ask someone who is fluent in English to post on your behalf?


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 27, 2017, 02:39:19 PM
I have trouble understanding you. Maybe ask someone who is fluent in English to post on your behalf?

Abdussamad  ...I also had trouble understanding you and thought to reply to you, in a similar style to your level of English. A little too simple to be of any use, indeed.

For what you are making comment here I don't know; you haven't exactly said anything useful for this thread to move forward, nor written some great literary prose of any interest. Why is it necessary for you to post such a comment? No. Please do not respond... and make such an assumption about me? You have no idea and come across as very arrogant. I would prefer it if you left this thread to someone who might be able to contribute to understanding.



Title: Re: Can I remove multisig function from wallet?
Post by: abuMubarak on October 27, 2017, 03:57:23 PM
The information here is helpful


Title: Re: Can I remove multisig function from wallet?
Post by: Abdussamad on October 27, 2017, 05:29:55 PM
If you view your restored 2fa wallet using a text editor like nano you will find the xprvs for 2 out of the 3 keys that make up your 2fa wallet. You will also see the corresponding xpubs. Since you know which xpubs make up your multisig wallet all you have to do is view the 2fa wallet file and copy the corresponding xprvs. You can then restore your multisig wallet using those xprvs and sign your transaction.

The location of your wallet files is  ~/.electrum/wallets/

I've attached a snippet of what you should be looking for: https://pastebin.com/11vsUuRf

Also update to the latest version of electrum i.e. 2.9.3 on your linux PC too. Otherwise you will face all sorts of problems. If you installed electrum using your distro's repos then first backup your wallet files, uninstall electrum using your package manager and then install the latest version using pip2 as per the instructions on electrum.org/#download. You can't rely on your distro's repos for electrum. It updates far too frequently for that. You have to install using pip2. In future updating will be the same as installing the latest version.



Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 27, 2017, 07:47:01 PM
I did try to update to the latest version of electrum i.e. 2.9.3 on my linux PC.

I did this successfully following this procedure.
sudo apt-get install python-qt4 python-pip
wget https://download.electrum.org/2.9.3/Electrum-2.9.3.tar.gz
tar -xvf Electrum-2.9.3.tar.gz
cd Electrum-2.9.3

I have since also done this successfully with a litecoin electrum wallet.
However, although I did backup my wallet files from the repo version, from my original wallet with the btc balance,  I have yet to uninstalled it. I feared to do this, since I tried to sweep the wallet into a new wallet version a couple of times unsuccessfully ('no inputs' was a message that came up).

At least the original version is showing my wallet balance.

I have not found instructions anywhere to uninstall either of the btc electrum wallet packages that are shown in the software manager. When I used the package manager it seems to just freeze and I get nowhere.

I believe I may have installed pip2 on a previous occasion. I shall investigate this. Perhaps there are terminal commands to uninstall the repo version. I shall look again.


Your suggestion certainly sounds like a good solution. Thank you


Title: Re: Can I remove multisig function from wallet?
Post by: Abdussamad on October 27, 2017, 08:45:52 PM
try `sudo apt-get remove electrum`

also apt-get install python-pip installs pip2 so you've done that already. the next step is to run `sudo pip2 install <electrum tar file>` You don't untar the tarball (tar file). You run pip2 on it directly. You may also have to install python-setuptools (sudo apt-get install python-setuptools) first.

Quote
I feared to do this, since I tried to sweep the wallet into a new wallet version a couple of times unsuccessfully ('no inputs' was a message that came up).


You can't sweep multisig addresses BTW.


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 28, 2017, 08:18:38 PM
Quote from: Aesopspots link=topic=2302112.msg23611786#msg23611786
In the latest attempt I have:-

Mac wallet type (2FA)
     cosig 1 .......   xpub67z ...etc
     cosig 2 .......new xpub69z...etc
     cosig 3 .......new xpub661...U etc

Where, Linux wallet is:-
     x1/self ............ xpub661 ...etc
     x2/cosigner ....   xpub67z ...etc


I think I need the xpub661 ...F etc shown in the restored Mac wallet using the multisig choice (not 2FA)using xpub from my Linux Ubuntu wallet.
No...

If you've found the right way to get the "xpub67z", (which appears to be part of your fully functional 2FA wallet), then I'd recommend creating a new standard wallet somewhere and immediately moving all your coins to it and then sorting out this mess of MultiSig/2FA that you're caught up in.

Theoretically, as long as you have the properly restored 2FA (with the xpub67z as cosign1) you should be able to create a transaction in Linux and sign it with the appropriate private key on the Mac... As the Mac wallet should have the private keys that match xpub67z!

If it still won't sign the transaction on the Mac, you may need to extract the xprv from the 2FA wallet file (not terribly difficult, but would be better for security if not required) and then create a new wallet using that xprv.


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 30, 2017, 10:44:58 AM
.... view your restored 2fa wallet using a text editor like nano you will find the xprvs for 2 out of the 3 keys that make up your 2fa wallet.

The location of your wallet files is  ~/.electrum/wallets/


I had to search for the original wallet a bit, since the new version's wallet is in the obvious place. It was in snap/electrum/2/.electrum/wallets

However my output is not clear, briefly the side headings are:

"accounts", then a list of 03 & 02 pairs (6 key string pairs)

"receiving", then a list of 03 & 02 pairs (22 key string pairs)

"xpubs", then my xpub67...U, and xpub661...F 

"accounts expanded"
"addr history",  then a list of 13 short ones, 3 longer ones, 15 short ones

"labels",  then 1 short key string

"master private keys"   "x1/"    then a  very long string about 1.5 times the length of an xpub key, with '/', '+' and '=' symbols. The letters 'xprv' are not in the key strings between these (long and short) anywhere

"master public keys"  x1/ & x2/ ...(xpub67...U, and xpub661...F )


And then various strings that follow the following
"payment requests"
"pruned_txo"
"seed"
"seed version"
"stored height"
"transactions"
"txi"
"txo"
"use encrytpion": true
"verified_tx3"
"wallet_type":  "2of2"
"winpos-qt"
426
1052
840
419

You can see it is not like the output you have Abdussamad.
I even tried to use this strange looking key once before, in an attempt at restoring my wallet. It just was not accepted.
I have have not attempted to do anything else you suggested as yet.


HCP

I think I may already have attempted to create a new wallet (many times in fact) and to either sweep the old wallet, as previously mentioned, and of course, tried to send coins there.  I cannot move my coins, they are 'stuck' in the Linux wallet.

So this leads us to trying to extract master private keys. "x/1" is shown but not of the expected format. "x/2" is not, but the xpub keys for both are.


[When I set the account up also also copy and pasted for safekeeping a string I have found since untraceable or unrecognisable. It is not 108 keys following xpub or xprv
It is xwod6xxxxxxxxxxxxxxxxxxxxMWy1rS6ruMsxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxg  ..it is just 97 keys long in total]
     









Title: Re: Can I remove multisig function from wallet?
Post by: Abdussamad on October 30, 2017, 10:58:02 AM
open your restored 2fa wallet in electrum and then go to wallet menu > password. Remove your password by entering the current password and leaving the new and confirm password fields blank. Then when you view the wallet file it'll show the unencrypted xprv.


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 30, 2017, 05:55:04 PM
Re:  "master private keys"   "x1/"    then a  very long string about 1.5 times the length of an xpub key, with '/', '+' and '=' symbols. The letters 'xprv' are not in the key strings between these (long and short) anywhere

This encrypted key is now un-encrypted, and begins xprv. However, it is just 'x1/' there is no 'x2/' showing


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 30, 2017, 10:57:29 PM
You only get "x2/" if you restore your wallet and then "Disable" 2fa so that it puts both xprvs into your wallet...

If you restore and "keep" the 2FA then you only get one xprv...

To be honest, I still think you're trying to retrieve the wrong keys... All these two xprvs will let you do is spend from your 2FA wallet without needing TrustedCoin.

But you're trying to spend from an unrelated MultiSig from your Linux wallet. ???


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 30, 2017, 11:47:26 PM

But you're trying to spend from an unrelated MultiSig from your Linux wallet. ???

 ???  the confusion was probably my initial explanation somewhere along the line, sorry for this.

Let's just just recap. ...

I have BTC in the Linux wallet I wish to spend, which produces tx's I cannot get signed on my Mac, where originally I did.

I put in the Subject of the thread, how can I get rid of the multisig feature, and by this I mean how can I spend/send the BTC from the Linux to anywhere else, as I am stuck with unsigned/broadcastable tx's. I was thinking that I could restore/sweep or whatever into a new wallet, and set up just a standard one to replace The current Linux one I referred to as multisig, so releasing my BTC.

The Mac (2fa) wallet can be ignored in that I had already removed all the BTC from it.



Title: Re: Can I remove multisig function from wallet?
Post by: Abdussamad on October 31, 2017, 04:20:27 AM
restore your 2fa wallet from seed, don't set a password so that it doesn't encrypt the xprvs and then view the wallet file in nano, vi, or some other text editor. then restore your multisig wallet using those xprvs. file > new/restore, enter a meaningful name like multisig-restore-20171031, wallet type multisig, select the number of cosigners (2?) and the number of sigs (1?), then for each cosigner select use public or private keys and enter the xprv one at a time. after that you should be able to spend your bitcoins to another wallet of your choice. for example a new standard electrum wallet (file>new/restore again).


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on October 31, 2017, 07:40:28 PM
restore your 2fa wallet from seed, don't set a password so that it doesn't encrypt the xprvs and then view the wallet file in nano, vi, or some other text editor. then restore your multisig wallet using those xprvs. file > new/restore, enter a meaningful name like multisig-restore-20171031, wallet type multisig, select the number of cosigners (2?) and the number of sigs (1?), then for each cosigner select use public or private keys and enter the xprv one at a time. after that you should be able to spend your bitcoins to another wallet of your choice. for example a new standard electrum wallet (file>new/restore again).

I tried to follow these instructions but have got things wrong somehow....there are no btc shown, and if I try to load a transaction made on the old 2.6.4 linux wallet which has the btc - it is unrelated.
None of the xpriv or xpub keys matched any of those identified previously. Perhaps I still haven't made it clear in my explanations which wallet is which.... :-\

What I just did:
1.. On Mac,restored the original wallet from seed, found wallet, viewed and copied x1 (bip32) xprv & xpub, x2 (bip32) xpvi & xpub, x3 (bip32) xpub
2... On Linux,using latest version, restored wallet named 'multisig-restore-20171031' using 2 cosigs/1 sig entered x1 and x2 xprv keys (from step 1)

I'm now looking at all the wallets again and trying to match up meaningful pairs of keys again


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on October 31, 2017, 10:30:34 PM
Again, I think you've very confused about how MultiSig works and you're attempting to recover the wrong keys for what you're trying to achieve. All you need at this point is a wallet containing the "missing" MultiSig key, so you can sign transactions from your Linux wallet.

So, I'll try and breakdown what *my* understanding of the situation is:

- You have a MultiSig wallet on your Linux machine, that has coins in it, that you want to spend.

- LinuxWallet contains Linux private key + a public key from MacWallet as "co-signer"

- MacWallet is actually a 2FA wallet. It has x1 privateKey (stored in wallet file), x2 privateKey (normally "hidden", but accessible with seed) and x3 private key (held by TrustedCoin)

- Based on your description of the "co-signer" pubkeys in LinuxWallet, it would appear that the MacWallet pubkey it is using is the one that matches the "x1" private key from your 2FA MacWallet (NOTE: Without seeing the full pubkey, it is impossible to know if this is true, please double check the full pub key and make sure it is completely identical to the one reported in Linux wallet)

- if these assumptions are indeed correct, to be able to spend from your Linux wallet, you would need to extract the "x1" privkey from MacWallet (simply change the password, and leave the "new password" boxes empty, you can then open the wallet in a text editor to view the xprv)

- once you have the x1 xprv, create a "standard" wallet using just that xpriv. ("New/restore -> call it 'signingWallet' -> standard wallet -> use public or private keys", paste in the x1 xprv).

- you should now have the original LinuxWallet MultiSig and a new "standard" wallet on Mac that is using the x1 xprv.

- From here, you simply create a (partially signed) transaction on Linux, transfer it to the newly created 'signingWallet', sign it and then broadcast it.

- using LinuxWallet, create the transaction as desired (ie. Address, amount, fee etc). Click "sign" and put in wallet password (if any). You'll get the "preview" window pop up with options to Copy, Save, "send to cosigner" etc. Click "Save" and save the unsigned.txn file to USB.

- using 'signingWallet' on Mac goto: "Tools -> Load Transaction -> from file"... select the unsigned.txn file from the USB... you'll get the "preview" window open up. Verify it's all correct (fyi, it's normal for it to say "transaction unrelated to your wallet"), click sign, put in wallet password (if any) and then click broadcast.

Job done!

Personally, I'd recommend that once you have confirmed that the signing wallet is all working, that if you want to continue using a MultiSig setup, that you seriously consider creating a new pair of wallets, so you can easily recover using seeds... Rather than having to mess about with xprvs etc.


Title: Re: Can I remove multisig function from wallet?
Post by: Abdussamad on November 01, 2017, 05:02:34 PM
I strongly suggest you upgrade to 2.9.3 on linux. You just will not be able to spend your coins using 2.6.4 even if you figure it all out. 2.6.4 is too old to sync with the network.


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on November 02, 2017, 03:33:54 PM

 (NOTE: Without seeing the full pubkey, it is impossible to know if this is true, please double check the full pub key and make sure it is completely identical to the one reported in Linux wallet)


Here's my double check HCP. I've marked where the keys seem to be exactly the same in the wallets using bold/italic and other symbols. I think it's ok.

The original Linux wallet,  (holding btc) 
        x1/self   xprv9s...j
                  xpub661mY ...FMES    *
        x2/cosigner
                    xpub67z ...UPWVv       **


 on the Mac,

     wallet type (1of2)  
         x1:      xprv9x....Q
                    xpub6Br...etc
      x2:    
                    xpub661My ...FMES    *


 

   wallet types (std) and (std, watching only)
                xpub661My ...FMES      *
     

    wallet type (1of2, watching only)
        x1   xpub67z ...UPWVv     **
        x2      xpub69Y...6fDY    +

     wallet type (std, watching only)
                xpub67z ..UPWVv    **

    wallet type (2FA)
        x1      xpub69Y ...6fDY       +
        x2      xpub69Y...A           -
        x3      xpub661...zM        #


    wallet (restored by seed w/o password, 2fa)
        x1      xprv9v….T6           
                  xpub69Y……..6fDY   +
       x2       xprv9v….NY
                  xpub69Y ...A                   -

       x3
                  xpub661My….zM    #


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on November 03, 2017, 05:56:24 AM
Ok, so I see the problem now... You don't actually have a wallet anywhere that has the matching private key (xprv) for the co-signer xpub (xpub67z ...UPWVv) from the Linux wallet. You've created a couple of "watching only" wallets using that xpub, but nothing with the actual xprv. :-\

For whatever reason, your Mac (1 of 2) wallet, has a completely different xpub (xpub6Br...etc)??!? ???

It would appear that you are missing your original wallet on the Mac that held the correct xprv :(

So, I would assume that It's either been overwritten by creating a new wallet with the same name, or its in a different folder, or it's been deleted.

If you don't have the seed to generate that missing xprv that matches xpub (xpub67z ...UPWVv), then I'm afraid to say that your coins will be stuck in that Linux wallet forever. :-\


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on November 05, 2017, 10:59:41 AM
Thank you very much for your help, regardless of the outcome here.

I will look again into trying to get from Time machine, an old copy of my wallet for the Mac

Any further suggestions are very welcome!

 :) **************************************VERY SPECIAL UPDATE**********************************************  :)

With the positive thoughts I have had since buying a Trezor wallet last week......perhaps, or just the price now of BTC to fiat {all time high $7500} -

I thought I would just try a transaction from my wallet, to any of the Mac wallets I created, to get going forward with this before going to TM.

I loaded the TX into the new wallet I created with your instructions [Restore from seed, with a new 2FA]

This was the one I tried made on my Mac in the newest version visiable:
   wallet type (2FA)
        x1      xpub69Y ...6fDY       +
        x2      xpub69Y...A           -
        x3      xpub661...zM        #

And it allowed me to Sign, and Broadcast the TX.

I now have the value $1.1 of BTC in my new Trezor wallet  :D

It worked!   ::) Many many thanks for guiding me and helping me with my greater understanding of how transactions work HCP   and Abdussamad  8)


Now this test transfer is over, I shall transfer the rest of my BTC and endeavour to try and get my Bitcoin cash and Bitgold!


Title: Re: Can I remove multisig function from wallet?
Post by: HCP on November 06, 2017, 07:12:33 AM
I honestly have no idea how that actually worked... none of the xpubs in your 2FA wallet are the same as the co-signer from your Linux MultiSig wallet!!?! ??? :o

But I guess that doesn't really matter... what really matters is that it signed the transaction and you "rescued" your BTC!  8) ;D Glad you got it sorted mate... hopefully things go a bit smoother in the future ;)


Title: Re: Can I remove multisig function from wallet?
Post by: Aesopspots on November 06, 2017, 08:56:40 AM
Firstly, I tried to send a small amount from an address inside the wallet where the BTC were, to the address at the top of the list - the wallet's heading address, and this worked.

Then I tried to send that sum to the Trezor, and followed by the remaining amount and in less than a minute the BTC had arrived each time. Could it be that I needed to send a tx contract to the wallet from the wallet to get it working?

Anyway, that's over now, and a relief to the tune of 000's USD to my net value!

Problems now with BCH now, I can see coins with a read only wallet generated from the prv of this Linux wallet (doing this on the Mac though) but again there is an issue that seems similar in Electron.

I may need to create a Multisig wallet, the standard one won't do- address beginning with 1.. and make one beginning 3.. like the original Btc one.

I'll try the same process again with this, for the 00's USD it is worth... ;)


THANK YOU