@combomethod<EOL><INDENT>def privateKeyToAccount(self, private_key):<DEDENT>
key = self._parsePrivateKey(private_key)<EOL>return LocalAccount(key, self)<EOL>
Returns a convenient object for working with the given private key.

:param private_key: The raw private key
:type private_key: hex str, bytes, int or :class:`eth_keys.datatypes.PrivateKey`
:return: object with methods for signing and encrypting
:rtype: LocalAccount

.. code-block:: python

    >>> acct = Account.privateKeyToAccount(
      0xb25c7db31feed9122727bf0939dc769a96564b2de4c4726d035b36ecf1e5b364)
    >>> acct.address
    '0x5ce9454909639D2D17A3F753ce7d93fa0b9aB12E'
    >>> acct.privateKey
    b"\\xb2\\}\\xb3\\x1f\\xee\\xd9\\x12''\\xbf\\t9\\xdcv\\x9a\\x96VK-\\xe4\\xc4rm\\x03[6\\xec\\xf1\\xe5\\xb3d"

    # These methods are also available: signHash(), signTransaction(), encrypt()
    # They correspond to the same-named methods in Account.*
    # but without the private key argument