Esempio n. 1
0
def unlock_steempy_wallet():
    """ Unlock steempy wallet from cli input. """
    wallet = Wallet()
    if KeyEncryptionKey.config_key in configStorage:
        if not env_unlocked():
            wallet.unlock()
            if wallet.locked():
                print('No Wallet password. Quitting.')
                quit(1)
    else:
        print('steempy wallet does not exist.'
              'Please import your active key before publishing feeds.')
        quit(1)
Esempio n. 2
0
def unlock_steempy_wallet():
    """ Unlock steempy wallet from cli input. """
    wallet = Wallet()
    if MasterPassword.config_key in configStorage:
        if not env_unlocked() and not Wallet.masterpassword:
            pwd = wallet.getPassword(text='BIP38 Wallet Password: '******'No Wallet password. Quitting.')
                quit(1)
    else:
        print('steempy wallet does not exist.'
              'Please import your active key before publishing feeds.')
        quit(1)