xud icon indicating copy to clipboard operation
xud copied to clipboard

Simulation Tests: Master Password

Open kilrau opened this issue 6 years ago • 4 comments

Continuation of https://github.com/ExchangeUnion/xud/issues/912:

Simulations tests to use encryption

kilrau avatar Jun 10 '19 08:06 kilrau

@sangaman could you explain this again?

kilrau avatar Nov 12 '19 17:11 kilrau

@sangaman can you please describe what's the desired outcome here?

LePremierHomme avatar Dec 12 '19 12:12 LePremierHomme

Please jump in @sangaman , but I'd say something along the lines:

  • create node, set random password, cache seed
  • lock, unlock with password
  • restore node with seed

kilrau avatar Dec 12 '19 15:12 kilrau

Yes I think that's about right. We want to turn off noencrypt and then use the RPC calls to create a wallet, it would be good to also unlock the wallet if possible.

Restoring a node would be trickier, maybe could be in a separate PR, but for that I think we would want to create a node, send funds to at least one LND instance (and ideally one ERC20 token as well), then delete the node and the lnd data dirs/eth keystore. Then we'd want to use the RestoreNode rpc call, pass in the mnemonic we got when creating the wallet, and ensure that our node key matches what it did originally and also that the funds are still in our wallets.

sangaman avatar Dec 13 '19 17:12 sangaman