app/scripts/keyring-controller.js
// Used before initializing a new vault.
Used before initializing a new vault.
Used before initializing a new vault .
clearKeyrings () {
    let accounts
    try {
      accounts = Object.keys(this.ethStore.getState())
    } catch (e) {
      accounts = []
    }
    accounts.forEach((address) => {
      this.ethStore.removeAccount(address)
    })
    this.keyrings = []
    this.memStore.updateState({
      keyrings: [],
      identities: {},
    })
  }
clearKeyrings ( ) { let accounts try { accounts = Object . keys ( this . ethStore . getState ( ) ) } catch ( e ) { accounts = [ ] } accounts . forEach ( ( address ) => { this . ethStore . removeAccount ( address ) } ) this . keyrings = [ ] this . memStore . updateState ( { keyrings : [ ] , identities : { } , } ) }
Used before initializing a new vault.
Used before initializing a new vault .
// clear keyrings from memory