Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 8a4f4e0

Browse files
authored
docs: tutorials: rolling alice: architecting alice: she's arriving when?: Link to shouldi Coach Alice: Our Open Source Guide
Related: ipvm-wg/spec#8 2022-11-14 @pdxjohnny Engineering Logs: #1406
1 parent 7569e87 commit 8a4f4e0

File tree

1 file changed

+65
-2
lines changed

1 file changed

+65
-2
lines changed

docs/tutorials/rolling_alice/0000_architecting_alice/0002_shes_ariving_when.md

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,72 @@ graph TD
214214
> |Defines data type|
215215
> |Links to other definitions to support something like<br>inheritance via graph node label traversal|
216216
217-
References:
217+
## SCITT API Emulator Spin Up
218218

219-
- https://github.com/intel/dffml/discussions/1369#discussioncomment-2988042
219+
Playing with SCITT
220+
221+
- References
222+
- https://github.com/microsoft/scitt-api-emulator/blob/2502eda6b99936a7b28792ca3fd6ba9fbf97e7ba/README.md
223+
224+
```console
225+
$ git clone https://github.com/microsoft/scitt-api-emulator
226+
$ cd scitt-api-emulator
227+
$ git ls-files | xargs -I '{}' -- sed -i 's/python3.8/python3.10/g' '{}'
228+
$ python -m rich.markdown README.md
229+
$ ./scitt-emulator.sh server --workspace workspace/ --tree-alg CCF
230+
Setting up Python virtual environment.
231+
[notice] A new release of pip available: 22.2.2 -> 22.3.1
232+
[notice] To update, run: pip install --upgrade pip
233+
Service private key written to workspace/storage/service_private_key.pem
234+
Service parameters written to workspace/service_parameters.json
235+
Service parameters: workspace/service_parameters.json
236+
* Serving Flask app 'scitt_emulator.server'
237+
* Debug mode: on
238+
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
239+
* Running on all addresses (0.0.0.0)
240+
* Running on http://127.0.0.1:8000
241+
* Running on http://192.168.1.115:8000
242+
Press CTRL+C to quit
243+
* Restarting with stat
244+
Service parameters: workspace/service_parameters.json
245+
* Debugger is active!
246+
* Debugger PIN: 000-000-000
247+
```
248+
249+
- Ran commands from `README.md`
250+
251+
```console
252+
$ ./scitt-emulator.sh server --workspace workspace/ --tree-alg CCF
253+
$ ./scitt-emulator.sh client create-claim --issuer did:web:example.com --content-type application/json --payload '{"sun": "yellow"}' --out claim.cose
254+
$ ./scitt-emulator.sh client submit-claim --claim claim.cose --out claim.receipt.cbor
255+
$ ./scitt-emulator.sh client retrieve-claim --entry-id 1 --out claim.cose
256+
$ ./scitt-emulator.sh client retrieve-receipt --entry-id 1 --out receipt.cbor
257+
$ ./scitt-emulator.sh client verify-receipt --claim claim.cose --receipt claim.receipt.cbor --service-parameters workspace/service_parameters.json
258+
```
259+
260+
- It works!
261+
262+
> The `verify-receipt` command verifies a SCITT receipt given a SCITT claim and a service parameters file. This command can be used to verify receipts generated by other implementations.
263+
>
264+
> The `service_parameters.json` file gets created when starting a service using `./scitt-emulator.sh server`. The format of this file is not standardized and is currently:
265+
>
266+
> ```json
267+
> {
268+
> "serviceId": "emulator",
269+
> "treeAlgorithm": "CCF",
270+
> "signatureAlgorithm": "ES256",
271+
> "serviceCertificate": "-----BEGIN CERTIFICATE-----..."
272+
> }
273+
> ```
274+
275+
- We upload `alice shouldi contribute` dataflow to SCITT and get a receipt!
276+
- Friends, today is a great day. :railway_track:
277+
- Next stop, serialization / federation with Alice / Open Architecture serialization data flow as SCITT service.
278+
- References
279+
- [Architecting Alice: She's Arriving When?: System Context](https://github.com/intel/dffml/edit/alice/docs/tutorials/rolling_alice/0000_architecting_alice/0002_shes_ariving_when.md#system-context)
280+
- [Coach Alice: Our Open Source Guide](https://github.com/intel/dffml/blob/alice/docs/tutorials/rolling_alice/0001_coach_alice/0002_our_open_source_guide.md)
281+
282+
[![asciicast](https://asciinema.org/a/537643.svg)](https://asciinema.org/a/537643)
220283
221284
> **TODO** The should be moved to Volume 6: Chapter 1: Time Travel with Us
222285
>

0 commit comments

Comments
 (0)