iancoleman / bip39

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

use new xpub/xprv prefixes for Segwit BIP49 #125

Closed prusnak closed 6 years ago

prusnak commented 6 years ago

Please use the following constants for BIP49 xpub/xprv prefixes as per http://docs.electrum.org/en/latest/seedphrase.html#list-of-reserved-numbers

Bitcoin:

0x049d7878 yprv 0x049d7cb2 ypub

Bitcoin Testnet:

0x044a5262 upub 0x044a4e28 uprv

Litecoin:

0x01b26ef6 Mtub 0x01b26792 Mtpv

This will assure that user does not accidentally imports BIP49 xpub to BIP44 watch only wallet.

iancoleman commented 6 years ago

Thanks for this.

See https://github.com/iancoleman/bip39/commit/93c3ef47579733040dbc6eec865b528d1ca49911 - Use correct prefixes for xprv/xpub with segwit

prusnak commented 6 years ago

Love it! Thanks