async createFakeStorage(fakePassword) {
    this.wallets = [];
    this.tx_metadata = {};

    let data = {
      wallets: [],
      tx_metadata: {},
    };

    let buckets = await AsyncStorage.getItem('data');
    buckets = JSON.parse(buckets);
    buckets.push(encryption.encrypt(JSON.stringify(data), fakePassword));
    this.cachedPassword = fakePassword;

    return AsyncStorage.setItem('data', JSON.stringify(buckets));
  }
/**
   * Cleans up all current application data (wallets, tx metadata etc)
   * Encrypts the bucket and saves it storage
   *
   * @returns {Promise.<boolean>} Success or failure
   */
Cleans up all current application data (wallets, tx metadata etc)
Encrypts the bucket and saves it storage

@returns {Promise.} Success or failure
Cleans up all current application data ( wallets tx metadata etc ) Encrypts the bucket and saves it storage @returns { Promise . } Success or failure
async createFakeStorage(fakePassword) {
    this.wallets = [];
    this.tx_metadata = {};
    let data = {
      wallets: [],
      tx_metadata: {},
    };
    let buckets = await AsyncStorage.getItem('data');
    buckets = JSON.parse(buckets);
    buckets.push(encryption.encrypt(JSON.stringify(data), fakePassword));
    this.cachedPassword = fakePassword;
    return AsyncStorage.setItem('data', JSON.stringify(buckets));
  }
async createFakeStorage ( fakePassword ) { this . wallets = [ ] ; this . tx_metadata = { } ; let data = { wallets : [ ] , tx_metadata : { } , } ; let buckets = await AsyncStorage . getItem ( 'data' ) ; buckets = JSON . parse ( buckets ) ; buckets . push ( encryption . encrypt ( JSON . stringify ( data ) , fakePassword ) ) ; this . cachedPassword = fakePassword ; return AsyncStorage . setItem ( 'data' , JSON . stringify ( buckets ) ) ; }
Cleans up all current application data (wallets, tx metadata etc)
 Encrypts the bucket and saves it storage
Cleans up all current application data ( wallets tx metadata etc ) Encrypts the bucket and saves it storage