naeural-client 2.5.27__py3-none-any.whl → 2.5.29__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
naeural_client/_ver.py CHANGED
@@ -1,4 +1,4 @@
1
- __VER__ = "2.5.27"
1
+ __VER__ = "2.5.29"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
naeural_client/bc/ec.py CHANGED
@@ -766,6 +766,7 @@ class BaseBCEllipticCurveEngine(BaseBlockEngine):
766
766
  "signature": signed_message.signature.hex(),
767
767
  "signed_message": signed_message_hash.hex(),
768
768
  "sender" : self.eth_address,
769
+ "eth_signed_data" : types,
769
770
  }
770
771
 
771
772
  def eth_sign_text(self, message, signature_only=True):
@@ -794,14 +795,21 @@ class BaseBCEllipticCurveEngine(BaseBlockEngine):
794
795
 
795
796
 
796
797
 
797
- def eth_sign_node_epochs(self, node, epochs, epochs_vals, signature_only=True):
798
+ def eth_sign_node_epochs(
799
+ self,
800
+ node,
801
+ epochs,
802
+ epochs_vals,
803
+ signature_only=True,
804
+ use_evm_node_addr=True
805
+ ):
798
806
  """
799
807
  Signs the node availability
800
808
 
801
809
  Parameters
802
810
  ----------
803
811
  node : str
804
- The node address.
812
+ The node address to sign. Either the node address or the Ethereum address based on `use_evm_node_addr`.
805
813
 
806
814
  epochs : list of int
807
815
  The epochs to sign.
@@ -811,13 +819,19 @@ class BaseBCEllipticCurveEngine(BaseBlockEngine):
811
819
 
812
820
  signature_only : bool, optional
813
821
  Whether to return only the signature. The default is True.
822
+
823
+ use_evm_node_addr : bool, optional
824
+ Whether to use the Ethereum address of the node. The default is True.
814
825
 
815
826
  Returns
816
827
  -------
817
828
  str
818
829
  The signature of the message.
819
830
  """
820
- types = ["string", "uint256[]", "uint256[]"]
831
+ if use_evm_node_addr:
832
+ types = ["address", "uint256[]", "uint256[]"]
833
+ else:
834
+ types = ["string", "uint256[]", "uint256[]"]
821
835
  values = [node, epochs, epochs_vals]
822
836
  result = self.eth_sign_message(types, values)
823
837
  if signature_only:
@@ -2,6 +2,15 @@ EE_ID = 'EE_ID'
2
2
  SB_ID = 'SB_ID' # change to SB_ID = EE_ID post mod from sb to ee
3
3
 
4
4
 
5
+ DAUTH_URL = 'https://dauth.naeural.com'
6
+
7
+ class LocalInfo:
8
+ LOCAL_INFO_FILE = 'local_info.json'
9
+ K_ADDRESS = 'address'
10
+ K_ALIAS = 'alias'
11
+ K_ETH_ADDRESS = 'eth_address'
12
+
13
+
5
14
  class BCctbase:
6
15
  SIGN = 'EE_SIGN'
7
16
  SENDER = 'EE_SENDER'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: naeural_client
3
- Version: 2.5.27
3
+ Version: 2.5.29
4
4
  Summary: `naeural_client` is the Python SDK required for client app development for the Naeural Edge Protocol Edge Protocol framework
5
5
  Project-URL: Homepage, https://github.com/NaeuralEdgeProtocol/naeural_client
6
6
  Project-URL: Bug Tracker, https://github.com/NaeuralEdgeProtocol/naeural_client/issues
@@ -1,5 +1,5 @@
1
1
  naeural_client/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
2
- naeural_client/_ver.py,sha256=PidhraqdmKwz2HGYPJnKJCtBOjGIyQoZAfR7CUa0LW0,331
2
+ naeural_client/_ver.py,sha256=Su6xJosgnROgGKjumJuv2AEcPZCyCahto-0LcY-zeug,331
3
3
  naeural_client/base_decentra_object.py,sha256=C4iwZTkhKNBS4VHlJs5DfElRYLo4Q9l1V1DNVSk1fyQ,4412
4
4
  naeural_client/plugins_manager_mixin.py,sha256=X1JdGLDz0gN1rPnTN_5mJXR8JmqoBFQISJXmPR9yvCo,11106
5
5
  naeural_client/base/__init__.py,sha256=hACh83_cIv7-PwYMM3bQm2IBmNqiHw-3PAfDfAEKz9A,259
@@ -16,7 +16,7 @@ naeural_client/base/payload/payload.py,sha256=x-au7l67Z_vfn_4R2C_pjZCaFuUVXHngJi
16
16
  naeural_client/bc/__init__.py,sha256=FQj23D1PrY06NUOARiKQi4cdj0-VxnoYgYDEht8lpr8,158
17
17
  naeural_client/bc/base.py,sha256=Nd0THGidmlLZOD8k8vwldQqIZ_LnvMgAE6l5U5OA45E,32286
18
18
  naeural_client/bc/chain.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
19
- naeural_client/bc/ec.py,sha256=mWjodWCRgC3omVXOA9jtNdtPVNn2kMKV3Dcjt9oFUCQ,22974
19
+ naeural_client/bc/ec.py,sha256=qI8l7YqiS4MNftlx-tF7IZUswrSeQc7KMn5OZ0fEaJs,23370
20
20
  naeural_client/certs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  naeural_client/certs/r9092118.ala.eu-central-1.emqxsl.com.crt,sha256=y-6io0tseyx9-a4Pmde1z1gPULtJNSYUpG_YFkYaMKU,1337
22
22
  naeural_client/cli/README.md,sha256=WPdI_EjzAbUW1aPyj1sSR8rLydcJKZtoiaEtklQrjHo,74
@@ -32,7 +32,7 @@ naeural_client/comm/mqtt_wrapper.py,sha256=Ig3bFZkCbWd4y_Whn2PPa91Z3aLgNbNPau6Tn
32
32
  naeural_client/const/README.md,sha256=6OHesr-f5NBuuJGryEoi_TCu2XdlhfQYlDKx_IJoXeg,177
33
33
  naeural_client/const/__init__.py,sha256=MM6Zib6i7M2qWcMkLtLx14zqU-lE-u2uPHjNvbh2jAM,478
34
34
  naeural_client/const/apps.py,sha256=gIONTZUkqPveu3DwelyJWpbFMeIR9l6DlaNg-xEfK1A,611
35
- naeural_client/const/base.py,sha256=oO7FIdk7Q56xFDWNLlayPFGXmwpB2pDIU-r8VI5cGmM,4012
35
+ naeural_client/const/base.py,sha256=DCnwRkvWDxpr-5qTn9VRbNNsUUjvXRJxzn_aUfZooag,4186
36
36
  naeural_client/const/comms.py,sha256=La6JXWHexH8CfcBCKyT4fCIoeaoZlcm7KtZ57ab4ZgU,2201
37
37
  naeural_client/const/environment.py,sha256=iytmTDgbOjvORPwHQmc0K0r-xJx7dnnzNnqAJJiFCDA,870
38
38
  naeural_client/const/formatter.py,sha256=AW3bWlqf39uaqV4BBUuW95qKYfF2OkkU4f9hy3kSVhM,200
@@ -81,8 +81,8 @@ naeural_client/utils/__init__.py,sha256=mAnke3-MeRzz3nhQvhuHqLnpaaCSmDxicd7Ck9uw
81
81
  naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,1072
82
82
  naeural_client/utils/config.py,sha256=JfW2gMQMYx9NzF2M4mJpioXawDHcOQ3deJprpCRtdOI,5874
83
83
  naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
84
- naeural_client-2.5.27.dist-info/METADATA,sha256=ZGsnsi7Y1bKzmvETVTploSB1972_O1yh-hQaducRGLw,14619
85
- naeural_client-2.5.27.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
86
- naeural_client-2.5.27.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
87
- naeural_client-2.5.27.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
88
- naeural_client-2.5.27.dist-info/RECORD,,
84
+ naeural_client-2.5.29.dist-info/METADATA,sha256=I74r0Zf8n-yP3SrEGSiY5CH9BA91vBcHyjJ3wu5c770,14619
85
+ naeural_client-2.5.29.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
86
+ naeural_client-2.5.29.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
87
+ naeural_client-2.5.29.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
88
+ naeural_client-2.5.29.dist-info/RECORD,,