iancoleman / bip39

A web tool for converting BIP39 mnemonic codes
https://iancoleman.io/bip39/
MIT License
3.45k stars 1.43k forks source link

Guide users to the BIP141 tab to generate SegWit addresses #373

Open andronoob opened 4 years ago

andronoob commented 4 years ago

In Bitcoin Core, three different address types (P2PKH/P2SH-P2WPKH/P2WPKH) share one common derivation path. I once thought this tool was unable to generate SegWit addresses when I was staring at the BIP32 tab (which has an option for Bitcoin Core), until I found that the BIP141 tab is totally capable of doing this.

By the way, there should be a checkbox like Add Electrum-style address type prefix. Electrum would add prefixes like "p2wpkh:" and "p2sh-p2wpkh:" to WIF private keys, to distinguish between different address types. This suggestion has been moved to #391.

andronoob commented 4 years ago

To be honest, I think switching to BIP141 tab is still a liitte bit awkward. Maybe merging BIP141 tab into BIP32 tab would be better.

iancoleman commented 4 years ago

there should be a checkbox like Add Electrum-style address type prefix. Electrum would add prefixes like "p2wpkh:" and "p2sh-p2wpkh:" to WIF private keys, to distinguish between different address types.

Please open a separate issue for this or rename this issue. I can't keep track of multiple things under a single title ;)

Can you please link to some docs about this electrum prefix feature? I've never seen it so would like to understand how many clients might be using this.

Regarding the combination of bip32 and bip141 tabs, I think they serve different purposes so prefer to keep them separate. I can appreciate they seem similar and could be merged. Gotta think more about whether the difference between bip32 and 141 is worth keeping isolated or not. Seems reasonable to merge the two tabs together and move bip141 script semantics options into bip32 tab. I'll think more about this.