app/scripts/lib/sovrin/sovrin-keyring-controller.js
// and persists that encrypted string to storage.
and persists that encrypted string to storage.
and persists that encrypted string to storage .
persistAllKeyrings (password = this.password) {
    if (typeof password === 'string') {
      this.password = password
      this.memStore.updateState({ isUnlocked: true })
    }
    return Promise.all(this.keyrings.map((keyring) => {
      return Promise.all([keyring.type, keyring.serialize()])
      .then((serializedKeyringArray) => {
        return {
          type: serializedKeyringArray[0],
          data: serializedKeyringArray[1],
        }
      })
    }))
    .then((serializedKeyrings) => {
      return this.encryptor.encrypt(this.password, serializedKeyrings)
    })
    .then((encryptedString) => {
      this.store.updateState({ vault: encryptedString })
      return true
    })
  }
persistAllKeyrings ( password = this . password ) { if ( typeof password === 'string' ) { this . password = password this . memStore . updateState ( { isUnlocked : true } ) } return Promise . all ( this . keyrings . map ( ( keyring ) => { return Promise . all ( [ keyring . type , keyring . serialize ( ) ] ) . then ( ( serializedKeyringArray ) => { return { type : serializedKeyringArray [ 0 ] , data : serializedKeyringArray [ 1 ] , } } ) } ) ) . then ( ( serializedKeyrings ) => { return this . encryptor . encrypt ( this . password , serializedKeyrings ) } ) . then ( ( encryptedString ) => { this . store . updateState ( { vault : encryptedString } ) return true } ) }
and persists that encrypted string to storage.
and persists that encrypted string to storage .
// Label the output values on each serialized Keyring: