You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The local chain must be running with our [contracts](https://github.com/okp4/contracts) stored.
42
43
43
-
The local configuration of `okp4d` in `$OKP4D_HOME/config/client.toml` shall be self-sufficient to sign and broadcast transaction without additional command flags (e.g. `--chain-id`, `--keyring-backend`, etc..)
44
+
The local configuration of `okp4d` in `$OKP4D_HOME/config/client.toml` shall be self-sufficient to sign and broadcast transaction without additional command flags (e.g. `--chain-id`, `--keyring-backend`, etc..)
Now let's declare the storage service and the dataset in the dataverse: we'll have for each one two verifiable credentials, one for the description and one referencing the governance. Then, another one will be needed to express that the dataset is served by our minio storage service, providing its protected proxy URL. Those verifiable credentials are available here:
94
+
93
95
-[example/vc-s3-desc.jsonld]
94
96
-[example/vc-s3-gov.jsonld]
95
97
-[example/vc-data-desc.jsonld]
@@ -102,6 +104,7 @@ Those VCs are not signed. For that we'll need to have some cryptographic keys to
102
104
You can list the keys with `okp4d --keyring-backend test --keyring-dir example keys list` if needed.
103
105
104
106
To sign and submit the verifiable credentials we have a simple script that you can use:
107
+
105
108
```bash
106
109
./scripts/setup.sh $MY_WALLET_ADDR$DATAVERSE_ADDR
107
110
```
@@ -110,11 +113,13 @@ To sign and submit the verifiable credentials we have a simple script that you c
110
113
111
114
Here we need to run the minio and deploy our dataset on it. For that, we provide a [docker-compose.yml]: it will run a MinIO instance accessible at `http://localhost:9000`.For demonstration purposes, this setup will make the `README` file of this project available as part of the dataset at `http://localhost:9000/test/README.md`.
112
115
You can start the compose with:
116
+
113
117
```bash
114
118
docker compose up
115
119
```
116
120
117
121
Now we'll run the proxy through which we'll connect to the dataverse with:
@@ -132,30 +137,35 @@ Now we'll run the proxy through which we'll connect to the dataverse with:
132
137
For this step, we'll act ourselves as the initiator of the execution order, and the orchestration service that'll fulfill the order, to demonstrate the interactions with the proxy.
133
138
134
139
Let's create the execution order, and the execution containing the status and the parameters:
At this point, submitting an authentication verifiable credential signed with the orchestration service keys we should be able to access the dataset, let's forge this credential:
148
+
142
149
```bash
143
150
./scripts/issue-auth-cred.sh > vc-auth.jsonld
144
151
```
145
152
146
153
And then issue an authentication request to obtain an access token:
154
+
147
155
```bash
148
156
curl -s -X POST -T ./vc-auth.jsonld http://localhost:8080/auth
149
157
```
150
158
151
159
Now we should be able to get through the proxy authorization layer with our access token:
0 commit comments