py-near 1.1.54__py3-none-any.whl → 1.1.56__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 +4 -2
- {py_near-1.1.54.dist-info → py_near-1.1.56.dist-info}/METADATA +1 -1
- {py_near-1.1.54.dist-info → py_near-1.1.56.dist-info}/RECORD +6 -6
- {py_near-1.1.54.dist-info → py_near-1.1.56.dist-info}/WHEEL +0 -0
- {py_near-1.1.54.dist-info → py_near-1.1.56.dist-info}/licenses/LICENSE +0 -0
- {py_near-1.1.54.dist-info → py_near-1.1.56.dist-info}/top_level.txt +0 -0
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
|
-
|
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)
|
@@ -478,7 +480,7 @@ class Account(object):
|
|
478
480
|
if public_key not in self._signer_by_pk:
|
479
481
|
raise ValueError(f"Public key {public_key} not found in signer list")
|
480
482
|
|
481
|
-
private_key = signing.SigningKey(self._signer_by_pk[public_key], encoder=encoding.RawEncoder)
|
483
|
+
private_key = signing.SigningKey(self._signer_by_pk[public_key][:32], encoder=encoding.RawEncoder)
|
482
484
|
sign = private_key.sign(nep461_hash)
|
483
485
|
return base58.b58encode(sign).decode("utf-8")
|
484
486
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: py-near
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.56
|
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=
|
2
|
+
py_near/account.py,sha256=XmTdggh7ZD64AQA4mKVto0V6_ZXLr8g_PeAX0rFsBR8,18307
|
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.
|
36
|
-
py_near-1.1.
|
37
|
-
py_near-1.1.
|
38
|
-
py_near-1.1.
|
39
|
-
py_near-1.1.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|