Bitcoin Forum
May 01, 2024, 04:40:57 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need help with 2fa wallet.  (Read 121 times)
Semeliranda (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 4


View Profile
July 06, 2023, 10:14:59 AM
Last edit: July 06, 2023, 10:28:08 AM by Semeliranda
Merited by o_e_l_e_o (4)
 #1

Good afternoon. I immediately apologize for my poor knowledge of English. I have a 2fa wallet in electrum. I have everything from him - seed, password, authenticator. It so happened that I transferred money to a wallet whose xpub is exactly the same as the first xpub from my 2fa wallet. Yes, I'm not very smart. When you enter the 2fa wallet data, there are three public keys, one with a key, and two with eyes (android application). So I transferred it to the xpub wallet with a key. I think that in my seed phrase two seeds from wallets in a 2fa wallet are encrypted? Can I somehow get the seed from the first wallet?

xpub691VHxoqUo1R55UxmKYTpapjmPehz3ZvJVVrSWUpRx8U7DqxYKHLikanSFZ5nk4xsurnoVNueMo C5Y1xi4VDP8JNvkz8gu6exMTu6KqRRLM
Photo 2fa wallet & second wallet
https://ibb.co/RpsMT7s

Transaction:
4c25bfa42400ae87e786680960c48ee3db300a19cea8e53434e0f17b374097ba
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714581657
Hero Member
*
Offline Offline

Posts: 1714581657

View Profile Personal Message (Offline)

Ignore
1714581657
Reply with quote  #2

1714581657
Report to moderator
1714581657
Hero Member
*
Offline Offline

Posts: 1714581657

View Profile Personal Message (Offline)

Ignore
1714581657
Reply with quote  #2

1714581657
Report to moderator
1714581657
Hero Member
*
Offline Offline

Posts: 1714581657

View Profile Personal Message (Offline)

Ignore
1714581657
Reply with quote  #2

1714581657
Report to moderator
hosseinimr93
Legendary
*
Offline Offline

Activity: 2380
Merit: 5235



View Profile
July 06, 2023, 11:11:48 AM
Last edit: July 06, 2023, 11:47:14 AM by hosseinimr93
Merited by o_e_l_e_o (4), RickDeckard (3), Pmalek (2), Charles-Tim (1)
 #2

You can get your master private key and gain access to the fund. Just note that you need to use the desktop version of electrum.

1. Go for creating a new wallet and select "Wallet with two-factor authentication."
2. Select "I already have a seed" and enter your seed phrase.
3. Select "disable".
4. Leave the password field empty and click "Next".
5. Find your wallet file in your hard drive and open it with a text editor application. (You can see the default electrum directory in electrum FAQs.)
6. Copy the first master private key. That's in front of "xprv": and above the first xpub.
7. Create a new wallet and select "Standard wallet".
8. Select "Use a master key".
9. Enter the master private key you copied in step 6 and click "Next".

Now, you should be able to spend your fund.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Charles-Tim
Legendary
*
Offline Offline

Activity: 1526
Merit: 4833



View Profile
July 06, 2023, 11:22:36 AM
 #3

2FA wallet is a certain type of multisig wallet. The master public key supposed to start from capital letter. Like this:

Zpub6zJQpdE6jvy74HAeC7UFJ3imqyw...

Not small letter.

If you import that your master public key like yours on another wallet for single sig, it will not be recognized. Like on Electrum, it will bring this error:

Code:
Error: invalid master key. 

How come you come up with such master public key.


If you have the correct master public key, you can get the master private key of the first address. But you have to do it on desktop Electrum by decrypting the wallet for backup, you can not do that on mobile Electrum.

On desktop Electrum GUI, click on wallet-> password and enter your present password, leaving the new and confirm password blank and click on OK.

On the GUI, click on file -> save back up -> OK.

Go to the file backup and use test editor to open it, scroll down and you will see your public keys, you will see the first public key with its private key.

@hosseinimr93 is also correct, if you want to see the first and the second private key. If it is the first private key that you want, you do not need to disable the 2FA, but if you need the second private key, you will need to disable the 2FA so that you will see the first and the second private key.

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

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

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

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

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

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











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











▄▄▄▄█
hosseinimr93
Legendary
*
Offline Offline

Activity: 2380
Merit: 5235



View Profile
July 06, 2023, 11:30:30 AM
Merited by Charles-Tim (1)
 #4

Code:
Error: invalid master key. 

How come you come up with such master public key.
You get that error when you have a segwit 2fa wallet and you use one of the master public keys to create a single-signature wallet. You don't get that error when using the master public key generated on a legacy 2fa wallet.
As you can see in the image shared by OP, he/she has used a xpub, not a zpub.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Cricktor
Hero Member
*****
Offline Offline

Activity: 756
Merit: 1108


Crypto Swap Exchange


View Profile
July 06, 2023, 11:45:52 AM
 #5

I had no issues to import the OP's xpub in a watch-only Electrum wallet and I can see two transactions in that wallet, the larger amount is with the transaction ID 4c25bfa42400ae87e786680960c48ee3db300a19cea8e53434e0f17b374097ba.

The instructions given by @hosseinimr93 to recover the wallet in desktop Electrum look OK to me.

@Semeliranda
Download the desktop version of Electrum only from https://www.electrum.org, carefully verify your download on a secure computer! We don't know how computer savvy you are. When you enter your mnemonic recovery words on a digital device, you need to be sure it is secure and free of malware. If you're not sure about that, you might consider to boot from a well known Linux Live OS and perform the actions there. A TAILS boot stick is OK, too.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Semeliranda (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 4


View Profile
July 06, 2023, 09:47:39 PM
Last edit: July 06, 2023, 09:59:12 PM by Semeliranda
 #6

Oh, gentlemen and ladies (if any), thank you very much. I'll try everything tomorrow. It's just my salary for a month + work.

«How come you come up with such master public key»
It was a year ago. It was necessary to transfer the electrum to a new phone. I didn't find the seed. More precisely, I did not know that in the electrum it is shown once. I saw a public key with a key picture and created a new wallet using it. But I saw that he was somehow not like that and didn’t do it anymore. And forgot about it. And then the war, work abroad, payment in bitcoins. I transferred to an old phone, but decided to transfer to a new one. Translated 1mbtc for verification and he came. Well, I transferred the entire amount. But now I know a lot more about different types of wallets. Heh.
nc50lc
Legendary
*
Offline Offline

Activity: 2394
Merit: 5578


Self-proclaimed Genius


View Profile
July 07, 2023, 06:58:05 AM
 #7

You can get your master private key and gain access to the fund. Just note that you need to use the desktop version of electrum.
-snip-
The shortcut to getting the master public key is by simply using the command: getmasterprivate()
After using the command, he'll be asked to type his password if the wallet is encrypted.

@Semeliranda
Since you're using the Android version which doesn't have access to the console, find a way to gain access to a secure desktop version.
But since you don't know the seed phrase, it'll be troublesome to create a copy of your wallet there without it.
The android version used to have an option to backup the wallet file that can be imported to the desktop version, but it appears to be removed in the new GUI.

Anyways, in the desktop version: To enable the console tab where the commands should be entered, tick "View->Show Console".

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

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

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

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

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

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











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











▄▄▄▄█
hosseinimr93
Legendary
*
Offline Offline

Activity: 2380
Merit: 5235



View Profile
July 07, 2023, 08:13:35 AM
 #8

I didn't find the seed. More precisely, I did not know that in the electrum it is shown once.
There is no way to export the seed phrase from a 2FA wallet. If that was possible, it would defeat the purpose of a 2FA wallet.
But in OP, you said that you have the seed phrase.  

I have everything from him - seed, password, authenticator.


I saw a public key with a key picture and created a new wallet using it.
Take note that with importing your master public key, you create a watch-only wallet and the fund displayed in a watch-only wallet is not spendable.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!