ethernity-cloud-sdk-py 0.2.2__tar.gz → 0.2.4__tar.gz

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.
Files changed (89) hide show
  1. {ethernity_cloud_sdk_py-0.2.2/ethernity_cloud_sdk_py.egg-info → ethernity_cloud_sdk_py-0.2.4}/PKG-INFO +1 -1
  2. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/__pycache__/private_key.cpython-311.pyc +0 -0
  3. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/__pycache__/publish.cpython-311.pyc +0 -0
  4. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/init.py +12 -2
  5. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/ipfs_client.cpython-311.pyc +0 -0
  6. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/publish.cpython-311.pyc +0 -0
  7. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile +1 -1
  8. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/etny_exec.py +1 -1
  9. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/__pycache__/image_registry.cpython-311.pyc +0 -0
  10. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/__pycache__/public_key_service.cpython-311.pyc +0 -0
  11. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose-final.yml +1 -1
  12. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose.yml +1 -1
  13. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-securelock-test.yaml +5 -5
  14. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/image_registry.py +7 -5
  15. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/predecessor.json +1 -1
  16. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4/ethernity_cloud_sdk_py.egg-info}/PKG-INFO +1 -1
  17. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/setup.py +1 -1
  18. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/LICENSE +0 -0
  19. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/MANIFEST.in +0 -0
  20. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/README.md +0 -0
  21. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/__init__.py +0 -0
  22. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/cli.py +0 -0
  23. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/__init__.py +0 -0
  24. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/__pycache__/__init__.cpython-311.pyc +0 -0
  25. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/__pycache__/build.cpython-311.pyc +0 -0
  26. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/__pycache__/config.cpython-311.pyc +0 -0
  27. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/__pycache__/init.cpython-311.pyc +0 -0
  28. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/__pycache__/spinner.cpython-311.pyc +0 -0
  29. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/build.py +0 -0
  30. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/config.py +0 -0
  31. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/private_key.py +0 -0
  32. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/publish.py +0 -0
  33. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/__init__.py +0 -0
  34. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/__init__.cpython-311.pyc +0 -0
  35. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/build.cpython-311.pyc +0 -0
  36. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/runner.cpython-311.pyc +0 -0
  37. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile.base +0 -0
  38. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile.base.tpl +0 -0
  39. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile.tpl +0 -0
  40. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/scripts/binary-fs-build.sh +0 -0
  41. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/cert1-ca1-clean.crt +0 -0
  42. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/cert1-ca1-clean.key +0 -0
  43. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/enclave_pub_cert.pem +0 -0
  44. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/input.txt +0 -0
  45. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/payload.py +0 -0
  46. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/public-cert-clean.pem +0 -0
  47. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/result.txt +0 -0
  48. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/transaction.txt +0 -0
  49. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/etny_crypto.py +0 -0
  50. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/image_registry.abi +0 -0
  51. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/key_generation.py +0 -0
  52. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/models.py +0 -0
  53. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/pox.abi +0 -0
  54. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/securelock.py.tmpl +0 -0
  55. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/swift_stream_service.py +0 -0
  56. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/build.py +0 -0
  57. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/ipfs_client.py +0 -0
  58. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/publish.py +0 -0
  59. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/IPFS_DOCKER_COMPOSE_HASH.ipfs +0 -0
  60. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/IPFS_HASH.ipfs +0 -0
  61. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/PUBLIC_KEY.txt +0 -0
  62. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/__init__.py +0 -0
  63. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/__pycache__/__init__.cpython-311.pyc +0 -0
  64. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/cert.pem +0 -0
  65. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/certificate.trustedzone.crt +0 -0
  66. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose-final.yml.tmpl +0 -0
  67. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose-swift-stream.yml.tmpl +0 -0
  68. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose.yml.tmpl +0 -0
  69. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-pynity-test.yaml.tpl +0 -0
  70. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-securelock-test.yaml.tpl +0 -0
  71. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-trustedzone-test.yaml.tpl +0 -0
  72. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/image_registry.abi +0 -0
  73. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/image_registry_runner.py +0 -0
  74. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/key.pem +0 -0
  75. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/pynithy/run/public_key_service.py +0 -0
  76. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/commands/spinner.py +0 -0
  77. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/templates/src/ethernity_task.py +0 -0
  78. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/templates/src/serverless/Dockerfile.serverless +0 -0
  79. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/templates/src/serverless/__init__.py +0 -0
  80. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/templates/src/serverless/backend.py +0 -0
  81. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py/templates/src/serverless/requirements.txt +0 -0
  82. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py.egg-info/SOURCES.txt +0 -0
  83. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py.egg-info/dependency_links.txt +0 -0
  84. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py.egg-info/entry_points.txt +0 -0
  85. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py.egg-info/requires.txt +0 -0
  86. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/ethernity_cloud_sdk_py.egg-info/top_level.txt +0 -0
  87. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/setup.cfg +0 -0
  88. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/tests/__init__.py +0 -0
  89. {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.4}/tests/test_example.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ethernity-cloud-sdk-py
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Ethernity Cloud SDK Python
5
5
  Home-page: https://github.com/ethernity-cloud/ethernity-cloud-sdk-py
6
6
  Author: Ethernity Cloud Team
@@ -5,6 +5,7 @@ import subprocess
5
5
  import re
6
6
  from pathlib import Path
7
7
  from ethernity_cloud_sdk_py.commands.config import Config, config
8
+ from ethernity_cloud_sdk_py.commands.pynithy.run.image_registry import ImageRegistry
8
9
 
9
10
  config = Config(Path(".config.json").resolve())
10
11
  config.load()
@@ -107,6 +108,10 @@ def main():
107
108
  docker_login = input("Enter Docker Login (username): ").strip()
108
109
  docker_password = input("Enter Password: ").strip()
109
110
  base_image_tag = input("Enter the image tag: ").strip()
111
+ config.write("BASE_IMAGE_TAG", base_image_tag)
112
+ config.write("DOCKER_REPO_URL", docker_repo_url)
113
+ config.write("DOCKER_LOGIN", docker_login)
114
+ config.write("DOCKER_PASSWORD", docker_password)
110
115
  print()
111
116
  blockchain_network_options = [
112
117
  "Bloxberg Mainnet",
@@ -124,10 +129,15 @@ def main():
124
129
  print(
125
130
  f"Checking if the project name (image name) is available on the {blockchain_network.replace(' ', '_')} network and ownership..."
126
131
  )
127
- import ethernity_cloud_sdk_py.commands.pynithy.run.image_registry as image_registry
132
+
133
+ config.write("PROJECT_NAME", project_name)
134
+ config.write("SERVICE_TYPE", service_type)
135
+
136
+
137
+ image_registry = ImageRegistry()
128
138
 
129
139
  print(f"Running script image_registry...")
130
- print(os.getcwd())
140
+ #print(os.getcwd())
131
141
 
132
142
  image_registry.main(
133
143
  blockchain_network.replace(" ", "_"),
@@ -4,7 +4,7 @@ COPY ./src/serverless/requirements.txt /requirements.txt
4
4
  RUN pip3 install -r /requirements.txt
5
5
  RUN rm -rf /requirements.txt
6
6
 
7
- ENV SECURELOCK_SESSION=ec_sdk_py_win_06_SECURELOCK_V3_testnet_92
7
+ ENV SECURELOCK_SESSION=ec_sdk_py_win_06_SECURELOCK_V3_testnet_96
8
8
  ENV BUCKET_NAME=etny-pynithy-testnet-v3
9
9
  ENV SMART_CONTRACT_ADDRESS=0x02882F03097fE8cD31afbdFbB5D72a498B41112c
10
10
  ENV IMAGE_REGISTRY_ADDRESS=0x15D73a742529C3fb11f3FA32EF7f0CC3870ACA31
@@ -58,7 +58,7 @@ def Exec(payload_data, input_data, globals=None, locals=None):
58
58
  else:
59
59
  # Handle statements if needed
60
60
  exec(
61
- compile(ast.Module([node]), filename="<ast>", mode="exec"),
61
+ compile(ast.Module([node], type_ignores=[]), filename="<ast>", mode="exec"),
62
62
  globals,
63
63
  locals,
64
64
  )
@@ -24,7 +24,7 @@ services:
24
24
  environment:
25
25
  - SCONE_CAS_ADDR=scone-cas.cf
26
26
  - SCONE_LAS_ADDR=las
27
- - SCONE_CONFIG_ID=ec_sdk_py_win_06_SECURELOCK_V3_testnet_90/application
27
+ - SCONE_CONFIG_ID=ec_sdk_py_win_06_SECURELOCK_V3_testnet_96/application
28
28
  - SCONE_HEAP=3072M
29
29
  - SCONE_LOG=FATAL
30
30
  - SCONE_STACK=4M
@@ -23,7 +23,7 @@ services:
23
23
  environment:
24
24
  - SCONE_CAS_ADDR=scone-cas.cf
25
25
  - SCONE_LAS_ADDR=las
26
- - SCONE_CONFIG_ID=ec_sdk_py_win_06_SECURELOCK_V3_testnet_90/application
26
+ - SCONE_CONFIG_ID=ec_sdk_py_win_06_SECURELOCK_V3_testnet_96/application
27
27
  - SCONE_HEAP=3072M
28
28
  - SCONE_LOG=FATAL
29
29
  - SCONE_STACK=4M
@@ -1,4 +1,4 @@
1
- name: ec_sdk_py_win_06_SECURELOCK_V3_testnet_90
1
+ name: ec_sdk_py_win_06_SECURELOCK_V3_testnet_96
2
2
  version: "0.3"
3
3
 
4
4
 
@@ -10,18 +10,18 @@ security:
10
10
  services:
11
11
  - name: application
12
12
  image_name: application_image
13
- mrenclaves: [ "14c3735cad8b2463b3f5add95ba8584c50ad88a77de0b77688a4dbcfb2339bb4" ]
13
+ mrenclaves: [ "1692a58a38b80e3f94f0ab7f95d7129fd616546a7c039a3a89568fae3db52612" ]
14
14
  command: /usr/local/bin/python /etny-securelock/securelock.py
15
15
  pwd: /
16
16
 
17
17
  images:
18
18
  - name: application_image
19
19
  injection_files:
20
- - path: /app/ec_sdk_py_win_06_SECURELOCK_V3_testnet_90/ca.pem
20
+ - path: /app/ec_sdk_py_win_06_SECURELOCK_V3_testnet_96/ca.pem
21
21
  content: $$SCONE::CA_CERT:crt$$
22
- - path: /app/ec_sdk_py_win_06_SECURELOCK_V3_testnet_90/cert.pem
22
+ - path: /app/ec_sdk_py_win_06_SECURELOCK_V3_testnet_96/cert.pem
23
23
  content: $$SCONE::SERVER_CERT:crt$$
24
- - path: /private/ec_sdk_py_win_06_SECURELOCK_V3_testnet_90/key.pem
24
+ - path: /private/ec_sdk_py_win_06_SECURELOCK_V3_testnet_96/key.pem
25
25
  content: $$SCONE::SERVER_CERT:privatekey$$
26
26
 
27
27
  secrets:
@@ -18,9 +18,10 @@ config = Config(Path(".config.json").resolve())
18
18
  config.load()
19
19
 
20
20
  class ImageRegistry:
21
- def __init__(self, private_key):
21
+ def __init__(self, private_key=None):
22
22
  try:
23
- self.private_key = private_key
23
+ if private_key:
24
+ self.private_key = private_key
24
25
  self.blockchain_network = config.read("BLOCKCHAIN_NETWORK")
25
26
  self.project_name = config.read("PROJECT_NAME")
26
27
  self.enclave_name_securelock = self.project_name
@@ -64,14 +65,15 @@ class ImageRegistry:
64
65
  # if "Bloxberg" in BLOCKCHAIN_NETWORK or "Polygon" in BLOCKCHAIN_NETWORK:
65
66
  # self.provider.middleware_onion.inject(geth_poa_middleware, layer=0)
66
67
 
67
-
68
- self.acct = Account().from_key(self.private_key)
69
- self.provider.eth.default_account = self.acct.address
68
+ if private_key:
69
+ self.acct = Account().from_key(self.private_key)
70
+ self.provider.eth.default_account = self.acct.address
70
71
 
71
72
  self.image_registry_contract = self.provider.eth.contract(
72
73
  address=to_checksum_address(self.image_registry_address),
73
74
  abi=self.image_registry_abi,
74
75
  )
76
+
75
77
  except Exception as e:
76
78
  raise Exception("Error initializing image registry: " + str(e))
77
79
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "hash": "44037bdf3780cd0fdceaee663e8fc446771e53f1497047f0c730fbcd1849996a",
2
+ "hash": "687d26329c2869251d666f13f35b2240c246736fc05a39f3c7df5faf08836e11",
3
3
  "warnings": [
4
4
  [
5
5
  "0.3 is a legacy version. Please consider using 0.3.7 instead, unless you are targeting SCONE 5.7.0 or older"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ethernity-cloud-sdk-py
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Ethernity Cloud SDK Python
5
5
  Home-page: https://github.com/ethernity-cloud/ethernity-cloud-sdk-py
6
6
  Author: Ethernity Cloud Team
@@ -5,7 +5,7 @@ this_directory = Path(__file__).parent
5
5
  long_description = (this_directory / "README.md").read_text()
6
6
  setup(
7
7
  name="ethernity-cloud-sdk-py",
8
- version="0.2.2",
8
+ version="0.2.4",
9
9
  url="https://github.com/ethernity-cloud/ethernity-cloud-sdk-py",
10
10
  author="Ethernity Cloud Team",
11
11
  author_email="contact@ethernity.cloud",