0

I have a dapp using truffle/ drizzle that implements regular user auth format (Login, id, tokn, etc). If I wanted to support each user having access to their own hd wallet, how would I do that with truffle-hd-wallet-provider? Do I update my web 3 instance on user login with the users mnemonic through the provider?

For example:

function login(mnemonic){ const provider = new truffle-hd-wallet-provider(mnemonic) web3 = web3(provider) drizzle.web3=web3 }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.