-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong public key shown on version 3.3.3 #5115
Comments
Can you please see #4777 and say if you think it's the same issue? |
Part of. If you click multiple times, it refreshes the pubkey. But the same pubkey is being shown in two different wallets. They were supposed to have different pubkeys. No matter what I try, I can't view the pubkey of the 1/2 wallet |
Try in console:
Do you see expected xpubs then? |
I see different xpubs for the same wallet (cosigner 1 and 2 pubkeys), but they are the same for both wallets (they should be different) |
Ok, so that is a separate issue from the Qt display bug of course. I think I understand now.
They are correctly the same master public keys, derived from the same seeds, but you are reusing them for two different wallets. The generated addresses between the wallets are different because the wallets use different scriptPubKey templates (output scripts). (well because of segwit witness stuff, it's a bit more complicated, but nevermind that) For privacy reasons, this setup is not ideal, but otherwise it's fine. |
Oh I see. I didn't know electrum worked like this. Both multisig wallets were generated by electrum, but I'm implementing my electrum personal server and I'm not getting luck on make it work with my 1/2 wallet. I get |
Can you paste/upload you EPS config? Just mask/mock out private stuff. |
Well the issue is with bip39/bip44 really. Given a mnemonic, and derivation path, you get a bip32 node. The script type does not enter the calculation, so if you want to reuse the mnemonic (seed words), but get different pubkeys, the only thing you can do is change the derivation path. |
|
What does the EDIT: yes, looks like that
|
You are right. I edited it and now I'm rescanning. I'll close this issue if this solves the problem with electrum. Thanks! |
Perfect, that was the problem. Thanks! |
I have four electrum wallets. Three of them are HW p2wsh wallets that were imported to electrum, and one of them is a p2pkh wallet created by electrum. Two of the three HW wallets are multisig wallets. All of them work fine.
In version 3.3.3, I was checking my pubkey from my two multisig HW wallets, but something strange happened. Electrum showed the same pubkey for both wallets (one is 1/2 and the other 2/2). They are different wallets, with different transactions, but the same pubkey was shown to both.
Another bug happened when I tried to see my cosigner pubkey. I had to switch between both cosigners radio buttons multiple times, because the same pubkey was being shown for both:
Wallet 1/2:
Wallet 2/2:
After switching from cosigner 1 and 2 multiple times, another pubkey was shown (probably mine from the 2/2 wallet), but the same pubkey was shown for both cosigners:
The expected behavior would be electrum showing a different pubkey for each wallet and each cosigner
Edit: I'm running version 3.3.3 on Mac
Edit2: I downgraded to version 3.3.2 and the same bug happened
The text was updated successfully, but these errors were encountered: