I'm using Ether.js for my react native app to create mnemonic. i want use Wallet.fromMnemonic(code, path) to get key pairs but when i send bitcoin Derivation Path i get and ethereum private key which is started with 0x.Is there any way to use ether.js to get other coin key pairs?

1 Answer 1


No, you cannot use ethers.js to generate a Bitcoin key pair. Most Bitcoin and Ethereum wallets use the same standard though (BIP-32 and BIP-39), so you can simply use one of the other libraries that implement this functionality, like bitcoinjs-lib.

There is an example using bitcoinjs-lib here: https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/bip32.js#L85

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.