src/components/migration/Migrate2.js
//generates a new random safex key set
generates a new random safex key set
generates a new random safex key set
createSafexKey() {
        this.setState({create_address: true, loading: true});
        const safex_keys = createSafexAddress();
        localStorage.setItem('new_wallet_address', JSON.stringify(safex_keys));
        this.setState({
            safex_key: safex_keys,
            safex_address: safex_keys.public_addr,
            safex_spend_pub: safex_keys.spend.pub,
            safex_spend_sec: safex_keys.spend.sec,
            safex_view_pub: safex_keys.view.pub,
            safex_view_sec: safex_keys.view.sec,
            loading: false,
        });
    }
createSafexKey ( ) { this . setState ( { create_address : true , loading : true } ) ; const safex_keys = createSafexAddress ( ) ; localStorage . setItem ( 'new_wallet_address' , JSON . stringify ( safex_keys ) ) ; this . setState ( { safex_key : safex_keys , safex_address : safex_keys . public_addr , safex_spend_pub : safex_keys . spend . pub , safex_spend_sec : safex_keys . spend . sec , safex_view_pub : safex_keys . view . pub , safex_view_sec : safex_keys . view . sec , loading : false , } ) ; }
generates a new random safex key set
generates a new random safex key set