-snip- but I found it somewhat ambiguous.
For example, it says the type "standard" is used for P2PKH and Multisig P2SH wallets and The type "segwit" is used for P2WPKH and P2WSH wallets. So the version number doesn't determine the script type unambiguously?
That's because the seed used in Single-sig and MultiSig wallets are of the same type,
So if the seed version is for Segwit, it can be used to create both Standard SegWit wallet and MultiSig SegWit wallet.
However, Electrum doesn't allow the creation of both
P2WSH and
P2WPKH scripts within the same wallet, each has to be created separately.
So, a Single-Sig wallet can only contain single sig script representation of the version number and a separate MultiSig wallet will contain only MultiSig scripts representation of the version number.
During creation process, I was never asked to choose a script type. So when selecting "standard Wallet", will the script type always be p2wpkh? And within the 'Coins' tab, or calling 'listunspent()' will it display uTxo's with p2wpkh-outputs only? That would simplify the implementation, at least for standard wallets.
In that particular test standard wallet, yes.
For the script type option during wallet creation, they've removed it since release version 4.1.0 and defaults to SegWit
But power-users can still create legacy wallets using commands (
mentioned in my note) so it's still necessary to support
P2PKH.