ratio1 3.4.110__py3-none-any.whl → 3.4.111__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.
- ratio1/_ver.py +1 -1
- ratio1/bc/evm.py +8 -5
- {ratio1-3.4.110.dist-info → ratio1-3.4.111.dist-info}/METADATA +1 -1
- {ratio1-3.4.110.dist-info → ratio1-3.4.111.dist-info}/RECORD +7 -7
- {ratio1-3.4.110.dist-info → ratio1-3.4.111.dist-info}/WHEEL +1 -1
- {ratio1-3.4.110.dist-info → ratio1-3.4.111.dist-info}/entry_points.txt +0 -0
- {ratio1-3.4.110.dist-info → ratio1-3.4.111.dist-info}/licenses/LICENSE +0 -0
ratio1/_ver.py
CHANGED
ratio1/bc/evm.py
CHANGED
|
@@ -527,11 +527,11 @@ class _EVMMixin:
|
|
|
527
527
|
|
|
528
528
|
message_prefix : str, optional
|
|
529
529
|
A prefix to be added to the message before hashing (or signing). The default is "".
|
|
530
|
-
|
|
530
|
+
|
|
531
531
|
Returns
|
|
532
532
|
-------
|
|
533
|
-
|
|
534
|
-
|
|
533
|
+
str
|
|
534
|
+
The address of the signer or None if the signature is invalid
|
|
535
535
|
"""
|
|
536
536
|
types = ["string"]
|
|
537
537
|
values = [message_prefix + text]
|
|
@@ -621,7 +621,10 @@ class _EVMMixin:
|
|
|
621
621
|
indent : int, optional
|
|
622
622
|
The indentation level for the JSON string. The default is 0.
|
|
623
623
|
|
|
624
|
-
|
|
624
|
+
Returns
|
|
625
|
+
-------
|
|
626
|
+
str
|
|
627
|
+
The address of the signer or None if the signature is invalid
|
|
625
628
|
"""
|
|
626
629
|
result = None
|
|
627
630
|
_payload = deepcopy(payload)
|
|
@@ -645,7 +648,7 @@ class _EVMMixin:
|
|
|
645
648
|
text=str_data, signature=signature, message_prefix=message_prefix,
|
|
646
649
|
no_hash=no_hash, raise_if_error=raise_if_error
|
|
647
650
|
)
|
|
648
|
-
if result is None:
|
|
651
|
+
if result is None or result.lower() != sender.lower():
|
|
649
652
|
if raise_if_error:
|
|
650
653
|
raise Exception("Signature verification failed.")
|
|
651
654
|
else:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ratio1
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.111
|
|
4
4
|
Summary: `ratio1` or Ration1 SDK is the Python SDK required for client app development for the Ratio1 ecosystem
|
|
5
5
|
Project-URL: Homepage, https://github.com/Ratio1/ratio1_sdk
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/Ratio1/ratio1_sdk/issues
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
ratio1/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
|
|
2
|
-
ratio1/_ver.py,sha256
|
|
2
|
+
ratio1/_ver.py,sha256=-6FtawFHyF8uRcb7vj8SOalFW93z3r54orkkXYYRkhM,332
|
|
3
3
|
ratio1/base_decentra_object.py,sha256=iXvAAf6wPnGWzeeiRfwLojVoan-m1e_VsyPzjUQuENo,4492
|
|
4
4
|
ratio1/plugins_manager_mixin.py,sha256=X1JdGLDz0gN1rPnTN_5mJXR8JmqoBFQISJXmPR9yvCo,11106
|
|
5
5
|
ratio1/base/__init__.py,sha256=hACh83_cIv7-PwYMM3bQm2IBmNqiHw-3PAfDfAEKz9A,259
|
|
@@ -17,7 +17,7 @@ ratio1/bc/__init__.py,sha256=BI5pcqHdhwnMdbWTYDLW1cVP_844VtLra-lz7xprgsk,171
|
|
|
17
17
|
ratio1/bc/base.py,sha256=g7tARNgi_0N1p9HpvqRDWDVYxuqU7W6S0q3ARC6oxKk,45870
|
|
18
18
|
ratio1/bc/chain.py,sha256=HCTQGnmuKqTvUo95OKdg8rL2jhKfSMwrich2e_7Nyms,2336
|
|
19
19
|
ratio1/bc/ec.py,sha256=FwlkWmJvQ9aHuf_BZX1CWSUAxw6OZ9jBparLIWcs_e4,18933
|
|
20
|
-
ratio1/bc/evm.py,sha256=
|
|
20
|
+
ratio1/bc/evm.py,sha256=JH2l9kZq7nEOilY4ZP5SOvxpqP7yaheZPR9LuTNui6I,53792
|
|
21
21
|
ratio1/certs/141.136.35.100.crt,sha256=DQ0GEz-CeTU_n2o3B6SeNqANWVVWu8m5a4OQ8FnYzvc,1866
|
|
22
22
|
ratio1/certs/195.35.29.4.crt,sha256=5aODzjC_mffZ8pl26LkE-nUHj6Ih8UWajmvd2paVwVY,1159
|
|
23
23
|
ratio1/certs/31.97.72.187.crt,sha256=2aY-YhlupUFCYldPsoOlhU_OYdFDTOmBSXa7gQOLB60,1858
|
|
@@ -109,8 +109,8 @@ ratio1/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,10
|
|
|
109
109
|
ratio1/utils/config.py,sha256=Elfkl7W4aDMvB5WZLiYlPXrecBncgTxb4hcKhQedMzI,10111
|
|
110
110
|
ratio1/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
|
|
111
111
|
ratio1/utils/oracle_sync/oracle_tester.py,sha256=aJOPcZhtbw1XPqsFG4qYpfv2Taj5-qRXbwJzrPyeXDE,27465
|
|
112
|
-
ratio1-3.4.
|
|
113
|
-
ratio1-3.4.
|
|
114
|
-
ratio1-3.4.
|
|
115
|
-
ratio1-3.4.
|
|
116
|
-
ratio1-3.4.
|
|
112
|
+
ratio1-3.4.111.dist-info/METADATA,sha256=1UnWOS3VGwVlzzmNiOfuO4Yb91URIAlbyc_blmxg84E,12256
|
|
113
|
+
ratio1-3.4.111.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
114
|
+
ratio1-3.4.111.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
|
|
115
|
+
ratio1-3.4.111.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
|
116
|
+
ratio1-3.4.111.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|