Closed gantunesr closed 8 months ago
@gantunesr Do you think we can get in #314 and release #304 prior to merging this? Seems desirable to sync the branches and get the fixes out separately from this breaking feature?
@mikesposito Yes! I'll have this done in @metamask/keyring-controller too
Description
This change updates the logic inside the
eth-keyring-controller
to allow the creation of a vault with any keyring. This removes the hardcoded HD Keyring from the code and allow the client to pass the parameters to instantiate any keyring that is accepted by the controller.Changes
createNewVaultAndKeychain
andcreateNewVaultAndRestore
into new methodcreateNewVaultWithKeyring
.createNewVaultWithKeyring
accepts a password and a keyring object provided by the client and returns theKeyringControllerState
References
No references
Checklist