Bitcoin Forum

Bitcoin => Mycelium => Topic started by: birr on March 21, 2018, 11:05:46 PM



Title: I found a bug (March 21, 2018)
Post by: birr on March 21, 2018, 11:05:46 PM
I have two accounts in my Mycelium Android wallet.  They are labeled:

Bitcoin HD(1)  and   Other(1)

They are both HD wallets.

When I go to the Other(1) account and try to export the seed, it gives me the seed of the Bitcoin HD(1) account.


Title: Re: I found a bug (March 21, 2018)
Post by: Xynerise on March 22, 2018, 07:45:20 AM
It's not a bug, but a feature.
Quote
All created HD Accounts are based on the same seed.

It uses BIP 44 to create different "accounts" with the same seed.
If you ever want to restore your other HD Accounts with the same seed then create new accounts when you import your seed into Mycelium.

Or use the following derivation paths:
Code:
m/44'/0'/0'/0
for the default account
Code:
m/44'/0'/1'/0
for the first HD account
Just keep incrementing the number depending on the number of accounts you have.


Title: Re: I found a bug (March 21, 2018)
Post by: birr on March 22, 2018, 06:41:16 PM
It's not a bug, but a feature.
Quote
All created HD Accounts are based on the same seed.


These are NOT two hd accounts based on the same seed.

They are two completely independent hd accounts, created from two different seeds.

Mycelium is able to do that.  Go to Add New Account --> Advanced.  You can scan an HD account that's completely unrelated to anything you have on the phone already.

I didn't create the second hd account from the first one.  The two accounts have different seeds.
The second account in this case is not a sub-account of the first one.  It is a new account with a DIFFERENT SEED.

Mycelium can run two (or more) wallets with different seeds, but only exports the seed of one of them.
That's a bug, and there's no use mincing words about it.
And just for the record, I'm not saying that the ability to run two accounts with different seeds is a bug.
The bug is mycelium's inability to export more than one seed.


Title: Re: I found a bug (March 21, 2018)
Post by: Xynerise on March 22, 2018, 08:35:03 PM


These are NOT two hd accounts based on the same seed.

They are two completely independent hd accounts, created from two different seeds.

Mycelium is able to do that.  Go to Add New Account --> Advanced.  You can scan an HD account that's completely unrelated to anything you have on the phone already.

I didn't create the second hd account from the first one.  The two accounts have different seeds.
The second account in this case is not a sub-account of the first one.  It is a new account with a DIFFERENT SEED.

Mycelium can run two (or more) wallets with different seeds, but only exports the seed of one of them.
That's a bug, and there's no use mincing words about it.
And just for the record, I'm not saying that the ability to run two accounts with different seeds is a bug.
The bug is mycelium's inability to export more than one seed.
Again, it's a feature, not a bug.
Mycelium warns you that the keys won't be added to your Master-seed backup and implores you to have a separate backup of it.
https://thumb.ibb.co/bOTh4c/Screenshot_20180322_213241.png (https://ibb.co/bOTh4c)
AFAIK NO mobile wallet will save two different seed phrases; usually if you import bitcoin private keys through a seed phrase it deletes the old wallet to prevent confusion.


Title: Re: I found a bug (March 21, 2018)
Post by: birr on March 23, 2018, 03:56:43 PM
You're kind of new here, I can see.  Making a practice of derailing discussion so that nothing comes of it.


Title: Re: I found a bug (March 21, 2018)
Post by: bob123 on March 23, 2018, 07:17:31 PM
I didn't create the second hd account from the first one.  The two accounts have different seeds.
The second account in this case is not a sub-account of the first one.  It is a new account with a DIFFERENT SEED.

If you created an account within mycelium it will get derived from your master seed including a 'counter'.
Did you create it within mycelium or did you import it?



Mycelium can run two (or more) wallets with different seeds, but only exports the seed of one of them.
That's a bug, and there's no use mincing words about it.

Mycelium does export the seed created within the application (which is enough to retrieve all HD accounts create within the app).
For imported seed mycelium states that there has to be a seperate backup stored. Thats not a bug imo.


Title: Re: I found a bug (March 21, 2018)
Post by: HCP on March 24, 2018, 02:12:23 AM
These are NOT two hd accounts based on the same seed.

They are two completely independent hd accounts, created from two different seeds.

Mycelium is able to do that.  Go to Add New Account --> Advanced.  You can scan an HD account that's completely unrelated to anything you have on the phone already.

I didn't create the second hd account from the first one.  The two accounts have different seeds.
The second account in this case is not a sub-account of the first one.  It is a new account with a DIFFERENT SEED.
Correct


Quote
Mycelium can run two (or more) wallets with different seeds, but only exports the seed of one of them.
That's a bug, and there's no use mincing words about it.
And just for the record, I'm not saying that the ability to run two accounts with different seeds is a bug.
The bug is mycelium's inability to export more than one seed.
Not quite correct. Mainly, because you didn't import a "seed", as you can't actually import a seed. What you have imported is a "Master Private Key"... which is derived from a seed (using a specific derivation path), but is NOT a seed.

Thus, there is no 2nd seed for Mycelium to export.

Additionally, they have a warning saying that you need to maintain separate backups of any imported keys.