ratio1 3.4.110__py3-none-any.whl → 3.4.112__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 CHANGED
@@ -1,4 +1,4 @@
1
- __VER__ = "3.4.110"
1
+ __VER__ = "3.4.112"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
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
- bool or None
534
- True if the signature is valid, False otherwise.
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:
ratio1/ipfs/r1fs.py CHANGED
@@ -389,6 +389,9 @@ class R1FSEngine:
389
389
 
390
390
  def _get_unique_or_complete_upload_name(self, fn=None, prefix="r1fs", suffix=""):
391
391
  if fn is not None and os.path.dirname(fn) == "":
392
+ # Don't add suffix if filename already ends with it
393
+ if suffix and fn.endswith(suffix):
394
+ return os.path.join(self.__uploads_dir, fn)
392
395
  return os.path.join(self.__uploads_dir, f"{fn}{suffix}")
393
396
  return self._get_unique_upload_name(prefix, suffix=suffix)
394
397
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ratio1
3
- Version: 3.4.110
3
+ Version: 3.4.112
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=S7CKp2ojSiBJgOipS7qC5Y18zj9tSoCgynysKNRBTWs,332
2
+ ratio1/_ver.py,sha256=UaAll1V9ATVcKDW5czEzwk8JtTZEci319P9RxztEE20,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=_KNauh2UPW4DywrcAMQWhlmg35fFWABFBO_YK8a0giY,53633
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
@@ -74,7 +74,7 @@ ratio1/io_formatter/default/aixp1.py,sha256=MX0TeUR4APA-qN3vUC6uzcz8Pssz5lgrQWo7
74
74
  ratio1/io_formatter/default/default.py,sha256=gEy78cP2D5s0y8vQh4aHuxqz7D10gGfuiKF311QhrpE,494
75
75
  ratio1/ipfs/__init__.py,sha256=vXEDLUNUO6lOTMGa8iQ9Zf7ajIQq9GZuvYraAHt3meE,38
76
76
  ratio1/ipfs/ifps_keygen,sha256=PcoYuo4c89_C9FWrKq9K_28ruhKqnxNn1s3nLHiF1tc,879
77
- ratio1/ipfs/r1fs.py,sha256=SBl1_UEhVd0rb4mgk9_zsdjBtp4XQKZ5_Fj4JMWzwls,91441
77
+ ratio1/ipfs/r1fs.py,sha256=dm52iGY2yEZBLThKsi632aMf1dOmyXAwmNzzYKue7_k,91598
78
78
  ratio1/ipfs/ipfs_setup/ipfs.service,sha256=isTJQsktPy4i1yaDA9AC1OKdlTYvsCCRRAVX-EmGqAs,248
79
79
  ratio1/ipfs/ipfs_setup/launch_service.sh,sha256=GWhZyNqtohLxJg8Q_c8YnNZduu1ddXDU-IFRRMaEyiY,141
80
80
  ratio1/ipfs/ipfs_setup/restart.sh,sha256=9xHMgkUoAMI25jeaoDVFbCa_LjojYm3ubljW58RatKE,22
@@ -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.110.dist-info/METADATA,sha256=1koxOPnHZobopHEUhx_ihWUXOtBZrRoWw8IMXYXRn-E,12256
113
- ratio1-3.4.110.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
114
- ratio1-3.4.110.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
115
- ratio1-3.4.110.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
116
- ratio1-3.4.110.dist-info/RECORD,,
112
+ ratio1-3.4.112.dist-info/METADATA,sha256=fwU8VEAShFw5e0VlSDW_ZBnuWaG0KamcmCoAFaQGo_0,12256
113
+ ratio1-3.4.112.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
114
+ ratio1-3.4.112.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
115
+ ratio1-3.4.112.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
116
+ ratio1-3.4.112.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any