py-near 1.1.56__py3-none-any.whl → 1.1.57__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,9 +87,7 @@ class Account(object):
87
87
  except UnicodeEncodeError:
88
88
  logger.error(f"Can't decode private key {pk[:10]}")
89
89
  continue
90
- if len(pk) > 32:
91
- pk = pk[:32]
92
- private_key = signing.SigningKey(pk, encoder=encoding.RawEncoder)
90
+ private_key = signing.SigningKey(pk[:32], encoder=encoding.RawEncoder)
93
91
  public_key_b58 = base58.b58encode(private_key.verify_key.encode()).decode("utf-8")
94
92
  self._signer_by_pk[public_key_b58] = pk
95
93
  self._free_signers.put_nowait(pk)
@@ -481,7 +479,7 @@ class Account(object):
481
479
  raise ValueError(f"Public key {public_key} not found in signer list")
482
480
 
483
481
  private_key = signing.SigningKey(self._signer_by_pk[public_key][:32], encoder=encoding.RawEncoder)
484
- sign = private_key.sign(nep461_hash)
482
+ sign = private_key.sign(nep461_hash).signature
485
483
  return base58.b58encode(sign).decode("utf-8")
486
484
 
487
485
  async def get_balance(self, account_id: str = None) -> int:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: py-near
3
- Version: 1.1.56
3
+ Version: 1.1.57
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=XmTdggh7ZD64AQA4mKVto0V6_ZXLr8g_PeAX0rFsBR8,18307
2
+ py_near/account.py,sha256=KdT79r0V3VuAbUia6PHQnLF31mVFVZJPWVrS2FfRbVE,18264
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.56.dist-info/licenses/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
36
- py_near-1.1.56.dist-info/METADATA,sha256=hAFwYM6qBbYltHYYlBOhC78SO4spc2gqCU0XvG7ppnI,6012
37
- py_near-1.1.56.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- py_near-1.1.56.dist-info/top_level.txt,sha256=p8CZgfKEVmXnRfVX5VHR0Ls7OVFC2ZVEwthvNB8Rb2Q,8
39
- py_near-1.1.56.dist-info/RECORD,,
35
+ py_near-1.1.57.dist-info/licenses/LICENSE,sha256=I_GOA9xJ35FiL-KnYXZJdATkbO2KcV2dK2enRGVxzKM,1023
36
+ py_near-1.1.57.dist-info/METADATA,sha256=n_7RnCp_QpudKqTFygjY_HNU6Z_4MXooXlwa58IaXQ0,6012
37
+ py_near-1.1.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ py_near-1.1.57.dist-info/top_level.txt,sha256=p8CZgfKEVmXnRfVX5VHR0Ls7OVFC2ZVEwthvNB8Rb2Q,8
39
+ py_near-1.1.57.dist-info/RECORD,,