Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
serderovsh committed Aug 16, 2019
1 parent 43a7392 commit f001328
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.1.4
current_version = 3.1.5
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<stage>[^.]*)\.(?P<devnum>\d+))?
Expand Down
10 changes: 6 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -47,8 +49,8 @@ Usage
Specify the API endpoints:


Example Smart Contract
-------
Smart Contract
--------------

.. code-block:: python
Expand Down Expand Up @@ -102,7 +104,7 @@ Example Smart Contract
..
Base Example
-------
------------

.. code-block:: python
Expand Down
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

py_version = platform.python_version()

PACKAGE_VERSION = '3.1.4'
PACKAGE_VERSION = '3.1.5'

EXTRAS_REQUIRE = {
'tester': [
Expand All @@ -48,7 +48,7 @@
"toposort>=1.4",
"urllib3",
"tronapi",
"wheel"
"wheel >= 0.31.0"
],

'dev': [
Expand All @@ -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"
]
Expand Down Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions tronapi/trx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f001328

Please sign in to comment.