docs: def importaccount(ctx, account, role):
      """ Import an account using an account password
      """
      from peerplaysbase.account import PasswordKey
  
      password = click.prompt("Account Passphrase", hide_input=True)
      account = Account(account, peerplays_instance=ctx.peerplays)
      imported = False
  
      if role == "owner":
          owner_key = PasswordKey(account["name"], password, role="owner")
          owner_pubkey = format(
              owner_key.get_public_key(), ctx.peerplays.rpc.chain_params["prefix"]
          )
          if owner_pubkey in [x[0] for x in account["owner"]["key_auths"]]:
              click.echo("Importing owner key!")
              owner_privkey = owner_key.get_private_key()
              ctx.peerplays.wallet.addPrivateKey(owner_privkey)
              imported = True
  
      if role == "active":
          active_key = PasswordKey(account["name"], password, role="active")
          active_pubkey = format(
              active_key.get_public_key(), ctx.peerplays.rpc.chain_params["prefix"]
          )
          if active_pubkey in [x[0] for x in account["active"]["key_auths"]]:
              click.echo("Importing active key!")
              active_privkey = active_key.get_private_key()
              ctx.peerplays.wallet.addPrivateKey(active_privkey)
              imported = True
  
      if role == "memo":
          memo_key = PasswordKey(account["name"], password, role=role)
          memo_pubkey = format(
              memo_key.get_public_key(), ctx.peerplays.rpc.chain_params["prefix"]
          )
          if memo_pubkey == account["memo_key"]:
              click.echo("Importing memo key!")
              memo_privkey = memo_key.get_private_key()
              ctx.peerplays.wallet.addPrivateKey(memo_privkey)
              imported = True
  
      if not imported:
          click.echo("No matching key(s) found. Password correct?")