trufflesuite / truffle-hdwallet-provider

HD Wallet-enabled Web3 provider
MIT License
401 stars 167 forks source link

How to use truffle-hdwallet-provider with ethereumjs-tx? #73

Closed shumailxyz closed 5 years ago

shumailxyz commented 5 years ago

I am wondering how can I use it to sign transactions with ethereumjs-tx? The sign() method of ethereumjs-tx accepts private key Buffer as mentioned in docs: https://github.com/ethereumjs/ethereumjs-tx/blob/master/docs/index.md#sign

How can I use truffle-hdwallet-provider to sign the transaction?

gnidan commented 5 years ago

Hi, could you please re-open this issue in trufflesuite/truffle? Looking to archive this repo, as this package is now in the monorepo.

shumailxyz commented 5 years ago

Sure.

shumailxyz commented 5 years ago

Opened @ https://github.com/trufflesuite/truffle/issues/1381