ethernity-cloud-sdk-py 0.2.2__tar.gz → 0.2.3__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.
- {ethernity_cloud_sdk_py-0.2.2/ethernity_cloud_sdk_py.egg-info → ethernity_cloud_sdk_py-0.2.3}/PKG-INFO +1 -1
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/__pycache__/private_key.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/__pycache__/publish.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/init.py +12 -2
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/ipfs_client.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/publish.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile +1 -1
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/etny_exec.py +1 -1
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/__pycache__/image_registry.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/__pycache__/public_key_service.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose-final.yml +1 -1
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose.yml +1 -1
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-securelock-test.yaml +5 -5
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/image_registry.py +7 -5
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/predecessor.json +1 -1
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3/ethernity_cloud_sdk_py.egg-info}/PKG-INFO +1 -1
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/setup.py +1 -1
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/LICENSE +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/MANIFEST.in +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/README.md +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/__init__.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/cli.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/__init__.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/__pycache__/__init__.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/__pycache__/build.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/__pycache__/config.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/__pycache__/init.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/__pycache__/spinner.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/build.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/config.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/private_key.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/publish.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/__init__.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/__init__.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/build.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/__pycache__/runner.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile.base +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile.base.tpl +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/Dockerfile.tpl +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/scripts/binary-fs-build.sh +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/cert1-ca1-clean.crt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/cert1-ca1-clean.key +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/enclave_pub_cert.pem +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/input.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/payload.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/public-cert-clean.pem +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/result.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/app/transaction.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/etny_crypto.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/image_registry.abi +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/key_generation.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/models.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/pox.abi +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/securelock.py.tmpl +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build/securelock/src/swift_stream_service.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/build.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/ipfs_client.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/publish.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/IPFS_DOCKER_COMPOSE_HASH.ipfs +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/IPFS_HASH.ipfs +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/PUBLIC_KEY.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/__init__.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/__pycache__/__init__.cpython-311.pyc +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/cert.pem +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/certificate.trustedzone.crt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose-final.yml.tmpl +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose-swift-stream.yml.tmpl +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/docker-compose.yml.tmpl +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-pynity-test.yaml.tpl +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-securelock-test.yaml.tpl +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/etny-trustedzone-test.yaml.tpl +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/image_registry.abi +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/image_registry_runner.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/key.pem +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/pynithy/run/public_key_service.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/commands/spinner.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/templates/src/ethernity_task.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/templates/src/serverless/Dockerfile.serverless +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/templates/src/serverless/__init__.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/templates/src/serverless/backend.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/templates/src/serverless/requirements.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py.egg-info/SOURCES.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py.egg-info/dependency_links.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py.egg-info/entry_points.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py.egg-info/requires.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py.egg-info/top_level.txt +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/setup.cfg +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/tests/__init__.py +0 -0
- {ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/tests/test_example.py +0 -0
|
Binary file
|
|
Binary file
|
|
@@ -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": dbase_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
|
-
|
|
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(" ", "_"),
|
|
Binary file
|
|
Binary file
|
|
@@ -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=
|
|
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
|
)
|
|
Binary file
|
|
Binary file
|
|
@@ -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=
|
|
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=
|
|
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:
|
|
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: [ "
|
|
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/
|
|
20
|
+
- path: /app/ec_sdk_py_win_06_SECURELOCK_V3_testnet_96/ca.pem
|
|
21
21
|
content: $$SCONE::CA_CERT:crt$$
|
|
22
|
-
- path: /app/
|
|
22
|
+
- path: /app/ec_sdk_py_win_06_SECURELOCK_V3_testnet_96/cert.pem
|
|
23
23
|
content: $$SCONE::SERVER_CERT:crt$$
|
|
24
|
-
- path: /private/
|
|
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
|
-
|
|
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
|
-
|
|
69
|
-
|
|
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": "
|
|
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"
|
|
@@ -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.
|
|
8
|
+
version="0.2.3",
|
|
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",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{ethernity_cloud_sdk_py-0.2.2 → ethernity_cloud_sdk_py-0.2.3}/ethernity_cloud_sdk_py/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|