Basically, Electrum generates the "
extended key" at m/84'/0'/0' and then uses that
extended key as the
root key... it then starts generating addresses as m/0/0, m/0/1, m/0/2 etc. (which are actually equivalent to: m/84'/0'/0'/0/0 etc)
You can test this using Ian Coleman's BIP39 mnemonic converter:
humble shoe steel champion good fall manual okay carbon eye bamboo minimum
zprvAWgYBBk7JR8GjBZDbo7MdVF9joK6GY581EeVAFTuPrqnDimH8bCqnSr7UNCr9Xo2YV8637rAAUNtGqqBNNF14NY37fu4B6WmV3wUxHmoMAB
Select BIP84 tab... gives us these account extended keys:
and this address:
So wee get an
Account extended private key of:
zprvAe4w8ERG69nfgjYSwkzaRokCDBrnaXPQykiBv6fDpFTkDiWDjBHJhQkeXJAKFAGdruUzict2rq5FfKPZRfv4qmvBrYzTLVXwoF2qXXjpHWy
and the matching
account extended public key:
zpub6s4HXjx9vXLxuDcv3nXanwgvmDhGyz7GLydniV4qNazj6WqNGibZFD58NYQBKk7yLcx3jTo87vxqG86CjpqFpXdUeSXQRTubZaxehpSvnEY
Which matches the one displayed by Electrum:
And these are the keys that Electrum stores in a BIP39 keystore/wallet file:
If we use this
account extended private key as the BIP32 root key at the top:
Select BIP141 and use "m/0":
We can see we derive the same addresses, with the path m/0/0:
And because it's not hardened, you are able to derive all the addresses from the the matching "account extended
pubkey"... you can also test this by putting the
account extended pubkey in as the BIP32 root key, selecting BIP141 tab and setting derivation to m/0... you'll get the same bc1qs702fa457e4qyqwz7e0pcwlp2cz0400h8lfu6h address
I suspect this is "by design", so you can actually use the "pubkey" to create watching-only wallets for cold storage setups etc.