naeural-client 2.5.27__py3-none-any.whl → 2.5.28__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 +1 -1
- naeural_client/bc/ec.py +17 -3
- {naeural_client-2.5.27.dist-info → naeural_client-2.5.28.dist-info}/METADATA +1 -1
- {naeural_client-2.5.27.dist-info → naeural_client-2.5.28.dist-info}/RECORD +7 -7
- {naeural_client-2.5.27.dist-info → naeural_client-2.5.28.dist-info}/WHEEL +0 -0
- {naeural_client-2.5.27.dist-info → naeural_client-2.5.28.dist-info}/entry_points.txt +0 -0
- {naeural_client-2.5.27.dist-info → naeural_client-2.5.28.dist-info}/licenses/LICENSE +0 -0
naeural_client/_ver.py
CHANGED
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(
|
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
|
-
|
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:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: naeural_client
|
3
|
-
Version: 2.5.
|
3
|
+
Version: 2.5.28
|
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=
|
2
|
+
naeural_client/_ver.py,sha256=WowAQLrKuMB_ys3x8LQ8iAqPPUK2E9Jjbf6c1oavd4o,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=
|
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
|
@@ -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.
|
85
|
-
naeural_client-2.5.
|
86
|
-
naeural_client-2.5.
|
87
|
-
naeural_client-2.5.
|
88
|
-
naeural_client-2.5.
|
84
|
+
naeural_client-2.5.28.dist-info/METADATA,sha256=SsdpD3nkjR9WKPjweP2ZYgwTMfdmbrjpAHFItTtkxPE,14619
|
85
|
+
naeural_client-2.5.28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
86
|
+
naeural_client-2.5.28.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
|
87
|
+
naeural_client-2.5.28.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
88
|
+
naeural_client-2.5.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|