py-near 1.1.54__py3-none-any.whl → 1.1.55__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
py_near/account.py CHANGED
@@ -87,7 +87,9 @@ class Account(object):
87
87
  except UnicodeEncodeError:
88
88
  logger.error(f"Can't decode private key {pk[:10]}")
89
89
  continue
90
- private_key = signing.SigningKey(pk[:32], encoder=encoding.RawEncoder)
90
+ if len(pk) > 32:
91
+ pk = pk[:32]
92
+ private_key = signing.SigningKey(pk, encoder=encoding.RawEncoder)
91
93
  public_key_b58 = base58.b58encode(private_key.verify_key.encode()).decode("utf-8")
92
94
  self._signer_by_pk[public_key_b58] = pk
93
95
  self._free_signers.put_nowait(pk)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: py-near
3
- Version: 1.1.54
3
+ Version: 1.1.55
4
4
  Summary: Pretty simple and fully asynchronous framework for working with NEAR blockchain
5
5
  Author-email: pvolnov <petr@herewallet.app>
6
6
  License: Permission is hereby granted, free of charge, to any
@@ -1,5 +1,5 @@
1
1
  py_near/__init__.py,sha256=t5fAxjaU8dN8xpQR2vz0ZGhfTkdVy2RCbkhJhZFglk4,50
2
- py_near/account.py,sha256=J9JSOXrglDr-91Lrr1cc2CgH845vGurLFdy91ty-cRA,18249
2
+ py_near/account.py,sha256=khay55bKlJ3x70TVpiYhhuH1ASm8zis2eN-FTYBWQ-E,18302
3
3
  py_near/constants.py,sha256=inaWIuwmF1EB5JSB0ynnZY5rKY_QsxhF9KuCOhPsM6k,164
4
4
  py_near/models.py,sha256=85ynmLVJnzWvFKq-Z8iIO0waU-2iP-CSkaOGX4mYoL0,11590
5
5
  py_near/providers.py,sha256=X_GfddFzmafBatqFJH41Dp_lYvTNcz1Q3Ko2tEnN0VU,16193
@@ -32,8 +32,8 @@ py_near/mpc/auth/base.py,sha256=IoFdRWUQcerYZq8TCkpjXJQRcENnzA9WwFbVPgmHgcs,629
32
32
  py_near/mpc/auth/core.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  py_near/mpc/auth/default_auth.py,sha256=i70412yXYx3MlFSsPxHLKbF0CXTjC39Qtl34et8kAEw,751
34
34
  py_near/mpc/auth/keys_auth.py,sha256=DJPi37DnV6r6cSskHEhHBiR_QiaAQJkg0AEsYp6cePA,2359
35
- py_near-1.1.54.dist-info/licenses/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
36
- py_near-1.1.54.dist-info/METADATA,sha256=WQeR_r0t--SwIfopnYnunfnheZpEGRZZClY42XPYIFo,6012
37
- py_near-1.1.54.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- py_near-1.1.54.dist-info/top_level.txt,sha256=p8CZgfKEVmXnRfVX5VHR0Ls7OVFC2ZVEwthvNB8Rb2Q,8
39
- py_near-1.1.54.dist-info/RECORD,,
35
+ py_near-1.1.55.dist-info/licenses/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
36
+ py_near-1.1.55.dist-info/METADATA,sha256=e8ex0o1yHlb7ivf4FPTwxQy8cQEa87t4ib2k93ffu_A,6012
37
+ py_near-1.1.55.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ py_near-1.1.55.dist-info/top_level.txt,sha256=p8CZgfKEVmXnRfVX5VHR0Ls7OVFC2ZVEwthvNB8Rb2Q,8
39
+ py_near-1.1.55.dist-info/RECORD,,