app/scripts/keyring-controller.js
// initializing the persisted keyrings to RAM.
initializing the persisted keyrings to RAM.
initializing the persisted keyrings to RAM .
unlockKeyrings (password) {
    const encryptedVault = this.store.getState().vault
    if (!encryptedVault) {
      throw new Error('Cannot unlock without a previous vault.')
    }
    return this.encryptor.decrypt(password, encryptedVault)
    .then((vault) => {
      this.password = password
      this.memStore.updateState({ isUnlocked: true })
      vault.forEach(this.restoreKeyring.bind(this))
      return this.keyrings
    })
  }
unlockKeyrings ( password ) { const encryptedVault = this . store . getState ( ) . vault if ( ! encryptedVault ) { throw new Error ( 'Cannot unlock without a previous vault.' ) } return this . encryptor . decrypt ( password , encryptedVault ) . then ( ( vault ) => { this . password = password this . memStore . updateState ( { isUnlocked : true } ) vault . forEach ( this . restoreKeyring . bind ( this ) ) return this . keyrings } ) }
initializing the persisted keyrings to RAM.
initializing the persisted keyrings to RAM .