0

I am working with @truffle/hdwallet-provider library.

This library works with a mnemonic. Is is basically a seedphrase.

Is there a way to work with this library outside truffle ? (I mean in a standalone javascript file).

Is there a way to calculate private keys from the mnemonic ?

Thanks

Bob5421
  • 1,457
  • 1
  • 12
  • 38

1 Answers1

0

Re: Is there a way to work with this library outside truffle ?

From the docs: You can use this provider wherever a Web3 provider is needed, not just in Truffle.

Re: Is there a way to calculate private keys from the mnemonic ?

I checked @truffle/hdwallet-provider docs and I didn't find such logic. I think this library is provider just for signing transactions, but you can achieve the mnemonic private key generation via ethers.js. I've explained how to do this here.

Miroslav Nedelchev
  • 3,519
  • 2
  • 10
  • 12