bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.68k stars 2.1k forks source link

How to create an address from a mnemonic phrase #1705

Closed maizenalegal closed 3 years ago

maizenalegal commented 3 years ago

title

junderw commented 3 years ago

Here's an example for BIP49 P2SH-P2WPKH.

By looking at this you can probably figure out how to generate any other type of address.

https://github.com/bitcoinjs/bitcoinjs-lib/blob/27a840aac4a12338f1e40c54f3759bbd7a559944/test/integration/bip32.spec.ts#L103-L120