iancoleman / bip39

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

add Bitcoin -regtest compatibility? #379

Closed dooglus closed 4 years ago

dooglus commented 4 years ago

I'm trying to generate bech32 addresses for Bitcoin's regtest mode, but am not seeing it in the list of available networks.

I think for the purposes of this site -regtest is the same as -testnet, but with a bech32 prefix of bcrt instead of tb.

To test this I tried replacing the 3 occurrances of 'tb' in bip39-standalone.html with 'bcrt' and that did allow me to create the bech32 addresses that I needed.

iancoleman commented 4 years ago

Thanks for this.

See https://github.com/iancoleman/bip39/commit/f12242014d1ed5c7606c3350a9780c3883abc565 - Add bitcoin regtest params