diff --git a/.bumpversion.cfg b/.bumpversion.cfg index ef4bb86..487e7bf 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 3.1.4 +current_version = 3.1.5 commit = True tag = True parse = (?P\d+)\.(?P\d+)\.(?P\d+)(-(?P[^.]*)\.(?P\d+))? diff --git a/README.rst b/README.rst index 8a11508..e217f9c 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,7 @@ +=================== TRON API for Python -===== +=================== + A Python API for interacting with the Tron (TRX) .. image:: https://img.shields.io/pypi/v/tronapi.svg @@ -47,8 +49,8 @@ Usage Specify the API endpoints: -Example Smart Contract -------- +Smart Contract +-------------- .. code-block:: python @@ -102,7 +104,7 @@ Example Smart Contract .. Base Example -------- +------------ .. code-block:: python diff --git a/setup.py b/setup.py index a34547c..6471cc3 100644 --- a/setup.py +++ b/setup.py @@ -24,7 +24,7 @@ py_version = platform.python_version() -PACKAGE_VERSION = '3.1.4' +PACKAGE_VERSION = '3.1.5' EXTRAS_REQUIRE = { 'tester': [ @@ -48,7 +48,7 @@ "toposort>=1.4", "urllib3", "tronapi", - "wheel" + "wheel >= 0.31.0" ], 'dev': [ @@ -60,8 +60,9 @@ "pytest-pythonpath>=0.3", "pytest-watch==4.*", "pytest-xdist==1.*", - "setuptools>=36.2.0", + "setuptools>=38.6.0", "tox>=1.8.0", + "twine >= 1.11.0", "tqdm", "when-changed" ] @@ -105,6 +106,7 @@ version=PACKAGE_VERSION, description='A Python API for interacting with Tron (TRX)', long_description=PACKAGE_LONG_DESCRIPTION, + long_description_content_type='text/x-rst', keywords='tron tron-api tron-api-python iexbase', url='https://github.com/iexbase/tron-api-python', author='Shamsudin Serderov', diff --git a/tronapi/trx.py b/tronapi/trx.py index c8ea0df..734b3e6 100644 --- a/tronapi/trx.py +++ b/tronapi/trx.py @@ -648,6 +648,7 @@ def verify_message(self, message, signed_message=None, address=None, use_tron: b # Determine which header to attach to the message # before encrypting or decrypting header = TRX_MESSAGE_HEADER if use_tron else ETH_MESSAGE_HEADER + header += str(len(message)) message_hash = self.tron.keccak(text=header+message) recovered = Account.recover_hash(self.tron.toHex(message_hash), signed_message.signature)